#Include <ScreenCapture.au3>
#Include <File.au3>
#Include <GuiListView.au3>
#include <GUIComboBox.au3>
#include <GUIListBox.au3>
#include <GuiButton.au3>
#Include <GuiMenu.au3>
#Include <Function For TreeView.au3>

Common_WriteCurrentFunctionNameToTempTXT($sTreeViewFunctionName)

Dim $bDebug = False

If Not $bDebug Then

	TreeView1_1_1()
	TreeView1_1_2()
	TreeView1_1_3()
	TreeView1_1_4()
	TreeView1_2_1()
	TreeView1_2_2()
	TreeView1_4_2()
	TreeView1_4_3()
	TreeView1_4_4()
	TreeView1_4_5()
	TreeView2_1_1()
	TreeView2_1_8()
	TreeView2_1_9()
	TreeView2_1_11()
	TreeView2_1_12()
	TreeView2_1_22() 
	TreeView2_1_23() 
	TreeView2_1_24() 
	TreeView2_1_26()
	TreeView2_1_27() 
	TreeView2_1_28() 
	TreeView2_1_29() 
	TreeView2_1_30() 
	TreeView2_1_31() 
	TreeView2_1_32() 
	TreeView2_1_33() 
	TreeView2_1_34() 
	TreeView2_1_35()
	TreeView2_2_7()
	TreeView2_2_8()
	TreeView2_2_9()
	TreeView2_2_10()
	TreeView2_2_11()
	TreeView2_2_12()
	TreeView2_2_20()
	TreeView2_2_21()
	TreeView2_5_7()
	TreeView2_5_8()
	TreeView2_5_10()
	TreeView2_5_11()
	TreeView2_5_12()
	TreeView2_5_25()
	TreeView2_5_26()
	TreeView2_5_27()
	TreeView2_5_28()
	TreeView2_6_6()
	TreeView2_6_9()
	TreeView2_6_10()
	TreeView2_6_11()
	TreeView2_6_12()
	TreeView2_6_23()
	TreeView2_6_25()
	TreeView2_6_26()
	TreeView2_6_27()
	TreeView2_6_28()
	TreeView2_6_29()
	TreeView2_7_8()
	TreeView2_7_9()
	TreeView2_7_10()
	TreeView2_7_11()
	TreeView2_7_12()
	TreeView2_7_13()
	TreeView2_7_14()
	TreeView2_7_15()
	TreeView2_7_16()
	TreeView2_7_28()
	TreeView2_7_29()
	TreeView2_7_30()
	TreeView2_7_31()
	TreeView2_7_32()
	TreeView2_8_6()
	TreeView2_8_7()
	TreeView2_8_8()
	TreeView2_8_9()
	TreeView2_8_10()
	TreeView2_8_11()
	TreeView2_8_12()
	TreeView2_8_13()
	TreeView2_8_14()
	TreeView2_8_15()
	TreeView2_9_5()
	TreeView2_9_6()
	TreeView2_12_26()
	TreeView2_12_27()
	TreeView2_12_28()
	TreeView2_12_29()
	TreeView2_12_30()
	TreeView2_12_31()
	TreeView2_12_32()
	TreeView2_12_33()
	TreeView2_12_34()
	TreeView2_12_35()
	TreeView2_12_39()
	TreeView2_12_40()
	TreeView2_12_43()
	TreeView2_12_44()
	TreeView2_12_45()
	TreeView2_12_46()
	TreeView2_12_47()
	TreeView2_12_48()
	TreeView2_12_49()
	TreeView2_12_54()
	TreeView2_12_55()
	TreeView2_13_9()
	TreeView2_13_12()
	TreeView2_13_17()
	TreeView2_13_18()
	TreeView2_13_19()
	TreeView2_13_21()
	TreeView2_13_26()
	TreeView2_13_27()
	TreeView2_13_28()
	TreeView2_13_29()
	TreeView2_13_30()
	TreeView2_13_31()
	TreeView2_13_32()
	TreeView2_13_33()
	TreeView2_13_34()
	TreeView2_13_35()
	TreeView2_13_36()
	TreeView2_13_42()
EndIf

CloseOpenedExcel($oExcel)

Func TreeView1_1_1()
	Local $sStep1 = '1:'   &  'After finished installing'
	Local $sStep2 = '2:'   &  "Launch PM"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The default focus should be on 'My Pagemanager' folder."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "1.1.1" 
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3 
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	$Text=_GUICtrlTreeView_GetText($hTreeView,$hPM)
    If $Text=$sMyPageManagerSampleFolder Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1  
    Else
	    Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView1_1_2()
	Local $sStep1 = '1:'   &  'Select "My Picture"'
	Local $sStep2 = '2:'   &  "Relaunch"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The default focus should be on last select folder."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "1.1.2"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf		
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SleepTime(6) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_SleepTime(2) 
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, $sDocuments)
	If $hItemFound == 0 Then $hItemFound = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $hItemFound == 0 Then $hItemFound = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $hItemFound == 0 Then $hItemFound = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')
	Common_SleepTime(2)
	_GUICtrlTreeView_SelectItem($hTreeView,$hItemFound)
	Common_SleepTime(4)
	Common_Close_PM($hPMHandle)
	Common_SleepTime(8)
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hMyPicture=_GUICtrlTreeView_GetSelection($hTreeView)
	$Text=_GUICtrlTreeView_GetText($hTreeView,$hMyPicture)
    If $Text=$sDocuments Or $Text=$sMyDocuments Or $Text='Documents' Or $Text='My Documents' Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1  
    Else
	    Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView1_1_3()
	Local $sStep1 = '1:'   &  'Creat new folder under "My Picture" and focus it.'
	Local $sStep2 = '2:'   &  "Quit PM and delete this folder   on OS explorer"
	Local $sStep3 = '3:'   &  "Relaunch"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The default focus should be on "My Picture" folder.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "1.1.3"  
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, $sMyPageManagerSampleFolder)
	_GUICtrlTreeView_ClickItem($hTreeView,$hItemFound,"left")
	_GUICtrlTreeView_SelectItem($hTreeView,$hItemFound,"left")
	Common_SleepTime(1)
	Send("!f")
	Common_SleepTime(1)
	send("w")
	Common_SleepTime(1)
	send("{ENTER}")
	Common_SleepTime(1)
	ControlTreeView ($hPMHandle, "", $hTreeView, "Expand", "#0|#1|#2")
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, $sMyPageManagerSampleFolder)
	$hItem=_GUICtrlTreeView_GetFirstChild($hTreeView,$hItemFound)
	Common_SleepTime(1)
	_GUICtrlTreeView_SelectItem($hTreeView,$hItem)
	_GUICtrlTreeView_SelectItem($hTreeView,$hItem)
	Common_SleepTime(4)
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder&"\New Folder", 1)
	Common_SleepTime(8)
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hMyPicture=_GUICtrlTreeView_GetSelection($hTreeView)
	$Text=_GUICtrlTreeView_GetText($hTreeView,$hMyPicture)
	 If $Text=$sMyPageManagerSampleFolder Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1  
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView1_1_4()
	Local $sStep1 = '1:'   &  'Creat new folder under "My Picture" and focus it.'
	Local $sStep2 = '2:'   &  'Quit PM and delete this folder   on OS explorer'
	Local $sStep3 = '3:'   &  'Quit PM and delete "My Picture"  on OS explorer'
	Local $sStep4 = '4:'   &  'Relaunch'
	Local $sRes   = 'Res:' &  'The default focus should be on parent folder. Focus on "My Pagemanager" folder'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "1.1.4"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView,$sMyPageManagerSampleFolder)
	_GUICtrlTreeView_ClickItem($hTreeView,$hItemFound,"left")
	_GUICtrlTreeView_SelectItem($hTreeView,$hItemFound,"left")
	Common_SleepTime(1)
	Send("!f")
	Common_SleepTime(1)
	send("w")
	Common_SleepTime(1)
	send("{ENTER}")
	Common_SleepTime(2)
	ControlTreeView ($hPMHandle, "", $hTreeView, "Expand", "#0|#1|#2")
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, $sMyPageManagerSampleFolder)
	$hItem=_GUICtrlTreeView_GetFirstChild($hTreeView,$hItemFound)
	Common_SleepTime()
	_GUICtrlTreeView_SelectItem($hTreeView,$hItem)
	Common_SleepTime(4)
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
	Common_SleepTime(8)
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_SleepTime(2) 
	$hMyPicture=_GUICtrlTreeView_GetSelection($hTreeView)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then	
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView1_2_1()
	Local $sStep1 = '1:'   &  'Maximun the window'
	Local $sStep2 = '2:'   &  ''
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1. The layout of TreeView should show normally2. The scroll bar should change normally(The tree size is normal)'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "1.2.1"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_SleepTime(2) 
	MouseClick("Left",985,15)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView1_2_2()
	Local $sStep1 = '1:'   &  'Maximun the window'
	Local $sStep2 = '2:'   &  'Restore the window'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1. The layout of TreeView should show normally2. The scroll bar should change normally(The tree size is normal)'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "1.2.2"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $posPMWindow = WinGetPos($hPMHandle)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	MouseClick("Left",$posPMWindow[2]-40,$posPMWindow[1]+10)
	Common_SleepTime(2) 
	MouseClick("Left",$posPMWindow[2]-40,$posPMWindow[1])
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView1_4_2()
	Local $sStep1 = '1:'   &  'Open the View Menu'
	Local $sStep2 = '2:'   &  'Check off the "TreeView" option '
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The TreeView and Quick Links should be hidden.(The image is tumbnial view,no files, no tree view so the size is big)'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "1.4.2"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf	
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Send("!v")
	Common_SleepTime(1)
	Send("v")
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage,  ControlGetHandle($hPMHandle, '', $sThumbnailViewCtrInfo))
	Common_SleepTime(1) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView1_4_3()
	Local $sStep1 = '1:'   &  'Open the View Menu'
	Local $sStep2 = '2:'   &  'Check off the "TreeView" option '
	Local $sStep3 = '3:'   &  'Relaunch PM'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The TreeView and Quick Links should be hidden.(The image is tumbnial view,no files, no tree view so the size is big)'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "1.4.3"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Send("!v")
	Common_SleepTime(1)
	Send("v")
	Common_SleepTime(1) 
	Common_Close_PM($hPMHandle)
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage,  ControlGetHandle($hPMHandle, '', $sThumbnailViewCtrInfo))
	Common_SleepTime(1) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView1_4_4()
	Local $sStep1 = '1:'   &  'Open the View Menu'
	Local $sStep2 = '2:'   &  'Check off the "TreeView" option '
	Local $sStep3 = '3:'   &  'Click the "F8" key'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The TreeView and Quick Links should be showed.(The image is tree view)'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "1.4.4"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	Send("!v")
	Common_SleepTime(2)
	Send("v")
	Common_SleepTime(2) 
	Send("{F8}")
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, ControlGetHandle($hPMHandle, '', $sTreeViewCtrInfo))
	Common_SleepTime(1) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
 
Func TreeView1_4_5()
	Local $sStep1 = '1:'   &  'Open the View Menu'
	Local $sStep2 = '2:'   &  'Check off the "TreeView" option '
	Local $sStep3 = '3:'   &  'Click the "F8" key'
	Local $sStep4 = '4:'   &  'Click the "F8" key again'
	Local $sRes   = 'Res:' &  'The TreeView and Quick Links should be hidden.(The image is tumbnial view,no files, no tree view so the size is big)'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "1.4.5"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	Send("!v")
	Common_SleepTime(2)
	Send("v")
	Common_SleepTime(2) 
	Send("{F8}")
	Common_SleepTime(2) 
	Send("{F8}")
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, ControlGetHandle($hPMHandle, '', $sThumbnailViewCtrInfo))
	Common_SleepTime(1) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_1()
	Local $sStep1 = '1:'   &  'Launch PM'
	Local $sStep2 = '2:'   &  ''
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The quick links default be displayed:My Documents,My PageManager, My Pictures.'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "2.1.1"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	$hQuickLinks=ControlGetHandle($hPMHandle,"",$sQuickLinks)
	If $hQuickLinks = "" Then
		Common_WriteLog($sFaile & $MunalExecuteTestCase & ' --- ' & '$hQuickLinks=ControlGetHandle($hPMHandle,"",$sQuickLinks)' , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hQuickLinks)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#cs
Func TreeView2_1_2()
	Local $sStep1 = '1:'   &  'Launch PM'
	Local $sStep2 = '2:'   &  'Add some links to quick links'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should be add "More" option and more links will be displayed in this option.(More option or scrool bar appear)'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "2.1.2"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	Local $hQuickLinks = ControlGetHandle($hPMHandle,"",$sQuickLinks)
	Local $posTreeView = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClickDrag("left",$posTreeView[0]+100,$posTreeView[1]+200,$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(2) 
	MouseClickDrag("left",$posTreeView[0]+100,$posTreeView[1]+180,$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(2) 
	MouseClickDrag("left",$posTreeView[0]+100,$posTreeView[1]+160,$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(2) 
	MouseClickDrag("left",$posTreeView[0]+100,$posTreeView[1]+220,$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(2) 
	MouseClickDrag("left",$posTreeView[0]+100,$posTreeView[1]+240,$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(2) 
	MouseClickDrag("left",$posTreeView[0]+100,$posTreeView[1]+260,$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hQuickLinks)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_3()
	Local $sStep1 = '1:'   &  'Launch PM'
	Local $sStep2 = '2:'   &  'Drap the slider bar to the top of TreeView Window'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It can not drap to the top and It should be add "More" option and more links will be displayed in this option.(The image has More option or scrool bar appear)'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $TestCaseID = "2.1.3"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	Local $hQuickLinks = ControlGetHandle($hPMHandle,"",$sQuickLinks)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClickDrag("left",89, 246,$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hQuickLinks)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_4()
	Local $TestCaseID = "2.1.4"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & '(The image has More option or scrool bar appear)'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)

	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	Local $hQuickLinks = ControlGetHandle($hPMHandle,"",$sQuickLinks)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClickDrag("left",89, 246,$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	MouseClick("left",$posQuickLinks[0]+60,$posQuickLinks[1]+55)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hQuickLinks)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_7()
	Local $TestCaseID = "2.1.7"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & '(The horizon scrool bar in the moddle of tree view)'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	$hAllTree = ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $posTreeView = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	Common_SleepTime(2) 
	MouseClickDrag("left",89, 246,$posTreeView[0]+80,$posTreeView[1]+$posTreeView[3]+30)
	Common_SleepTime(2) 
	MouseClick("left",$posTreeView[0]+170,$posTreeView[1]+$posTreeView[3]+10)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hAllTree)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#ce
Func TreeView2_1_8()
	Local $TestCaseID = "2.1.8"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & '(Alert message: The folder path is invalid)'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hAllTree = ControlGetHandle($hPMHandle,"",$sAllTreeView)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_SleepTime(2) 
	$hItem=_GUICtrlTreeView_GetSelection($hTreeView)
	Common_SleepTime(2) 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	 _GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime(2) 
	Send("{Del}")
	Common_SleepTime(2) 
	Send("{Enter}")
	Common_SleepTime(10) 
	Send('{F5}')
	Common_SleepTime(2) 
	MouseClick('left',45, 143)
	Common_SleepTime(3) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, WinGetHandle(''))
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_9()
	Local $TestCaseID = "2.1.9"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] 
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_SleepTime(2) 
	Local $hItem=_GUICtrlTreeView_GetSelection($hTreeView)
	Common_SleepTime(2) 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	  _GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	 Common_SleepTime(6)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
	Common_SleepTime(2) 
	 _GUICtrlTreeView_ClickItem($hTreeView,$hItem,"right")
	  _GUICtrlTreeView_SelectItem($hTreeView,$hItem,"right")
	Common_SleepTime(6) 
	send("{UP}")
	Common_SleepTime()
	send("{UP}")
	Common_SleepTime(2) 
	Send("{Enter}")
	Common_SleepTime(4) 
	$hItem = _GUICtrlTreeView_GetSelection($hTreeView)
	Local $text = _GUICtrlTreeView_GetText($hTreeView,$hItem)
    If $text = $sDocuments or $text = $sMyDocuments Or $Text='Documents' Or $Text='My Documents' Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
    Else
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func TreeView2_1_11()
	Local $TestCaseID = "2.1.11"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] 
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hAllTreeView=ControlGetHandle($hPMHandle,"",$sAllTreeView)
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, $sMyPictures)
	Local $hQuickLinks = ControlGetHandle($hPMHandle,"",$sQuickLinks)
	_GUICtrlTreeView_ClickItem($hTreeView,$hItemFound)
	_GUICtrlTreeView_SelectItem($hTreeView,$hItemFound)
	Common_SleepTime(2) 
	DirMove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, @MyDocumentsDir& "\My Music\"&$sMyPageManagerSampleFolder,1)
	Common_SleepTime(6) 
	_GUICtrlTreeView_ClickItem($hTreeView,$hItemFound,"right")
	_GUICtrlTreeView_SelectItem($hTreeView,$hItemFound,"right")
	Common_SleepTime(2)
	send("{UP}")
	Common_SleepTime(1)
	send("{UP}")
	Common_SleepTime(2) 
	Send("{Enter}")
	Common_SleepTime(10) 
	$hquickLink = ControlGetHandle($hPMHandle,"",$sQinckLinksCtrInfo)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hQuickLinks)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		DirRemove(@MyDocumentsDir& "\My Music\"&$sMyPageManagerSampleFolder,1)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		DirRemove(@MyDocumentsDir& "\My Music\"&$sMyPageManagerSampleFolder,1)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_12()
	Local $TestCaseID = "2.1.12"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & ''
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hAllTreeView=ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $hQuickLinks = ControlGetHandle($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	Local $hItem=_GUICtrlTreeView_GetSelection($hTreeView)
	Common_SleepTime(2) 
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime(2)
	For $i=0 To 5
		Send("{down}")
		Sleep(200)
	Next
	Send("{ENTER}")
	Common_SleepTime(2)
	Send("aa")
	Common_SleepTime(1)
	Send("{ENTER}")
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hQuickLinks)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	Common_SleepTime(2)
   If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		DirRemove(@MyDocumentsDir& "\aa",1)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		DirRemove(@MyDocumentsDir& "\aa",1)
		Return 0
	EndIf
EndFunc
#cs
Func TreeView2_1_13()
	Local $TestCaseID = "2.1.13"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & 'Save Games should in quick link'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hAllTreeView=ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Common_SleepTime(2) 
	Local $hQuickLinks = ControlGetHandle($hPMHandle,"",$sQuickLinks)
	Local $posTreeView = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClickDrag("left",106,491 ,$posQuickLinks[0]+80,$posQuickLinks[1]+120)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hQuickLinks)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_21()
	Local $TestCaseID = "2.1.21"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & 'The quck link shoul no changed'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	$hAllTreeView=ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $hQuickLinks = ControlGetHandle($hPMHandle,"",$sQuickLinks)
	Local $posThumbnailView = ControlGetPos($hPMHandle,"",$sThumbnailViewCtrInfo)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClickDrag("left",$posThumbnailView[0]+100,$posThumbnailView[1]+80,$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(2) 
	$hquickLink = ControlGetHandle($hPMHandle,"",$sQinckLinksCtrInfo)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hQuickLinks)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#ce
Func TreeView2_1_22()
	Local $TestCaseID = "2.1.22"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & 'The folder "Pictures" in tree view should selected'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("left",$posQuickLinks[0]+80,$posQuickLinks[1]+60)
	Common_SleepTime(6) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_23()
	Local $TestCaseID = "2.1.23"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & ''
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Local $hQuickLinks = ControlGetHandle($hPMHandle,"",$sQuickLinks)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
	Common_SleepTime(2) 
	MouseClick("left",$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(4) 
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$TestCaseID & '_1.jpg', $sAllMessageTitle)
		Common_SleepTime(2) 
		Send("{enter}")
		$CaptureCompareResult1 = Common_CompareFile ($PerformResultPath&$TestCaseID & '_1.jpg', $CorrectResutPath&$TestCaseID & '_1.jpg')  
		Common_SleepTime(2)
		Common_ScreenCaprureWindow($PerformResultPath,$TestCaseID & '_2.jpg', $hQuickLinks)
		Common_SleepTime(2) 
		$CaptureCompareResult2 = Common_CompareFile ($PerformResultPath&$TestCaseID & '_2.jpg', $CorrectResutPath&$TestCaseID & '_2.jpg')  
		Common_SleepTime(2)
		If $CaptureCompareResult1 And  $CaptureCompareResult2 Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile& ":Please check "&$TestCaseID & ".jpg" , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_24()
	Local $TestCaseID = "2.1.24"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & 'The folder "Pictures" in tree  view should Selected'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+60)
	Common_SleepTime(2) 
	Send("{DOWN}")
	Common_SleepTime(1) 
	Send("{ENTER}")
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
   If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_26()
	Local $TestCaseID = "2.1.26"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & 'The "111" should in qiick link'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hQuickLinks = ControlGetHandle($hPMHandle,"",$sQuickLinks)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+60)
	Common_SleepTime(2)
	send("{DOWN}")
	Common_SleepTime()
	send("{DOWN}")
	Common_SleepTime()
	send("{Enter}")
	Common_SleepTime(2)
	ControlSend($sRenameTitle,"",$sQuickLinkRenameEditBox,"111")
	Common_SleepTime(2)
	ControlClick($sRenameTitle,"",1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hQuickLinks)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
   If $CaptureCompareResult Then			
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_27()
	Local $TestCaseID = "2.1.27"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & 'Alert message about name is incorrect'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hQuickLinks = ControlGetHandle($hPMHandle,"",$sQuickLinks)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+60)
	Common_SleepTime(2)
	send("{DOWN}")
	Common_SleepTime()
	send("{DOWN}")
	Common_SleepTime()
	send("{Enter}")
	Common_SleepTime(2)
	ControlFocus($sRenameTitle,"",$sQuickLinkRenameEditBox)
	Common_SleepTime()
	Send("{DEL}")
	Common_SleepTime(2)
	ControlClick($sRenameTitle,"",1)
	Common_SleepTime(4) 
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Common_SleepTime(2) 
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then			
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_28()
	Local $TestCaseID = "2.1.28"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & 'Alert message about name is incorrect'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hAllTreeView = ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+60)
	Common_SleepTime(2)
	send("{DOWN}")
	Common_SleepTime()
	send("{DOWN}")
	Common_SleepTime()
	send("{Enter}")
	Common_SleepTime(2)
	ControlSend($sRenameTitle,"",$sQuickLinkRenameEditBox,"     ")
	Common_SleepTime(2)
	ControlClick($sRenameTitle,"",1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hAllTreeView)
	Common_SleepTime(4) 
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Common_SleepTime(2) 
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_29()
	Local $TestCaseID = "2.1.29"
	
	If Not _ExcelSheetActivate($oExcel, $sExcelSheetName) Then Return False
	Local $aArray1 = _ExcelReadArray($oExcel, 1, $iTestIDCoulmn, $iCurrentSheetTotalLineNumber, 1)
	If @error Then Return False
	Local $aiResult = _ArrayFindAll($aArray1, $TestCaseID)
	If @error Then Return False
	Local $TestCaseIDLineNumber = $aiResult[0] + 1
	Local $sStep1_ = _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFirstStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep2_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iSecondStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep3_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iThirdStepCoulmn,1,0) 
	If @error Then Return False
	Local $sStep4_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, $iFourthStepCoulmn,1,0) 
	If @error Then Return False
	Local $sRes_ =  _ExcelReadArray($oExcel, $TestCaseIDLineNumber, 14,1,0) 
	If @error Then Return False
	Local $sStep1 = '1:'   &  $sStep1_[0]
	Local $sStep2 = '2:'   &  $sStep2_[0]
	Local $sStep3 = '3:'   &  $sStep3_[0]
	Local $sStep4 = '4:'   &  $sStep4_[0]
	Local $sRes   = 'Res:' &  $sRes_[0] & 'Alert message about name is incorrect'
	$sFailLogMsg = Common_ExecuteStep_EX1($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hAllTreeView = ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+60)
	Common_SleepTime(2)
	send("{DOWN}")
	Common_SleepTime()
	send("{DOWN}")
	Common_SleepTime()
	send("{Enter}")
	Common_SleepTime(2)
	ControlSend($sRenameTitle,"",$sQuickLinkRenameEditBox,":>?P{P{")
	Common_SleepTime(2)
	ControlClick($sRenameTitle,"",1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hAllTreeView)
	Common_SleepTime(4) 
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Common_SleepTime(2) 
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_30()
	Local $TestCaseID = "2.1.30"
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn,'(111111111111111111111111111111 should in quck link)')
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hAllTreeView = ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Local $hQuickLinks=ControlGetHandle($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+60)
	Common_SleepTime(2)
	send("{DOWN}")
	Common_SleepTime()
	send("{DOWN}")
	Common_SleepTime()
	send("{Enter}")
	Common_SleepTime(2)
	ControlSend($sRenameTitle,"",$sQuickLinkRenameEditBox,"1111111111111111111111111111112")
	Common_SleepTime(2)
	send("{Enter}")
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hQuickLinks)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then	
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_31()
	Local $TestCaseID = "2.1.31"
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, '(111111111111111111111111111111 should in quck link)')
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hAllTreeView = ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+60)
	Common_SleepTime(2)
	send("{DOWN}")
	Common_SleepTime()
	send("{DOWN}")
	Common_SleepTime()
	send("{Enter}")
	Common_SleepTime(2)
	ControlSend($sRenameTitle,"",$sQuickLinkRenameEditBox,"1111111111111111111111111111112")
	Common_SleepTime(2)
	ControlClick($sRenameTitle,"",1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hAllTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
    If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_32()
	Local $TestCaseID = "2.1.32"
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, '')
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hAllTreeView = ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(2)
	send("{DOWN}")
	Common_SleepTime()
	send("{DOWN}")
	Common_SleepTime()
	send("{Enter}")
	Common_SleepTime(2)
	If Not ControlSend($sRenameTitle,"",$sQuickLinkRenameEditBox,$sDocuments) Then ControlSend($sRenameTitle,"",$sQuickLinkRenameEditBox,$sMyDocuments)
	Common_SleepTime(2)
	ControlClick($sRenameTitle,"",1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hAllTreeView)
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Common_SleepTime(2) 
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_33()
	Local $TestCaseID = "2.1.33"
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, '(Alert message about name is incorrect)')
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hAllTreeView = ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(2)
	send("{DOWN}")
	Common_SleepTime()
	send("{DOWN}")
	Common_SleepTime()
	send("{Enter}")
	$file = FileOpen ("C:\Double_Byte.txt", 0)
	$line = FileReadLine ($file, 1)
	Common_SleepTime(2)
	ControlSend($sRenameTitle,"",$sQuickLinkRenameEditBox,$line)
	Common_SleepTime(2)
	ControlClick($sRenameTitle,"",1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hAllTreeView)
	Common_SleepTime(4) 
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Common_SleepTime(2) 
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase) 
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_34()
	Local $TestCaseID = "2.1.34"
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, '(Alert message about name is incorrect)')
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hAllTreeView = ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+80)
	Common_SleepTime(2)
	send("{DOWN}")
	Common_SleepTime()
	send("{DOWN}")
	Common_SleepTime()
	send("{Enter}")
	$file = FileOpen ("C:\Double_Byte.txt", 0)
	$line = FileReadLine ($file, 15)
	Common_SleepTime(2)
	ControlSend($sRenameTitle,"",$sQuickLinkRenameEditBox,$line)
	Common_SleepTime(2)
	ControlClick($sRenameTitle,"",1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hAllTreeView)
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Common_SleepTime(2) 
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_35()
	Local $TestCaseID = "2.1.35"
	Local $sCusMsg = '("My Documents should delete in quick link")'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hAllTreeView = ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+40)
	Common_SleepTime()
	send("{up}")
	Common_SleepTime()
	send("{Enter}")
	Common_SleepTime(2)	
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hAllTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_1_36()
	Local $TestCaseID = "2.1.36"
	Local $sCusMsg = 'No items in quick link'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Local $hAllTreeView = ControlGetHandle($hPMHandle,"",$sAllTreeView)
	Local $posQuickLinks = ControlGetPos($hPMHandle,"",$sQuickLinks)
	Common_SleepTime(2) 
	For $i=0 to 3
		MouseClick("right",$posQuickLinks[0]+80,$posQuickLinks[1]+40)
		Common_SleepTime()
		send("{up}")
		Common_SleepTime()
		send("{Enter}")
	Next
	Common_SleepTime(2)	
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hAllTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_2_7()
	Local $TestCaseID = "2.2.7"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_SleepTime(2) 
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView,$hPM)
	_GUICtrlTreeView_SelectItem($hTreeView,$hPM)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(2)
	send("w")
	Common_SleepTime()
	send("{ENTER}")
	Common_SleepTime(2)
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, $sMyPageManagerSampleFolder)
	$n=_GUICtrlTreeView_GetChildCount($hTreeView,$hItemFound)
	If  $n=1 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_2_8()
	Local $TestCaseID = "2.2.8"
	Local $sCusMsg = '("new Folder" should create under the fodler "My Pagemanager" folder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hPM)
	_GUICtrlTreeView_SelectItem($hTreeView,$hPM)
	Send("!f")
	Common_SleepTime(2)
	send("w")
	Common_SleepTime(3)
	send("{ENTER}")
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists(@MyDocumentsDir & '\My PageManager\New Folder') Then
	;If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_2_9()
	Local $TestCaseID = "2.2.9"
	Local $sCusMsg = '(Alert message about name is incrrect)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView,$hPM)
	_GUICtrlTreeView_SelectItem($hTreeView,$hPM)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(2)
	send("w")
	Common_SleepTime()
	Send("<..>")
	Common_SleepTime(2)
	send("{ENTER}")
	Common_SleepTime(4) 
	If WinExists($sRenameTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sRenameTitle)
		Common_SleepTime(2) 
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf	
EndFunc

Func TreeView2_2_10()
	Local $TestCaseID = "2.2.10"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, $sDocuments)
	If $hItemFound == 0 Then $hItemFound = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $hItemFound == 0 Then $hItemFound = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $hItemFound == 0 Then $hItemFound = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')		
	_GUICtrlTreeView_ClickItem($hTreeView,$hItemFound)
	_GUICtrlTreeView_SelectItem($hTreeView,$hItemFound)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	send("w")
	Common_SleepTime(1)
	Send($sMyPageManagerSampleFolder)
	Common_SleepTime(2)
	send("{ENTER}")
	Common_SleepTime(4) 
	If WinExists($sConfirmFolderReplace) Then
		Local $htext = ControlGetHandle($sConfirmFolderReplace,"",16779)
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $htext)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & ":Not message to refer user the folder is not existed" , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf	
EndFunc

Func TreeView2_2_11()
	Local $TestCaseID = "2.2.11"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#2|#0")
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	_GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime(2)
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "??")
	_GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1,"right")
	Common_SleepTime(2)
	$hMenu=WinGetHandle("[Class:#32768]")
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hMenu)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_2_12()
	Local $TestCaseID = "2.2.12"
	Local $sCusMsg = '(Alert message about path too long)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	DirCreate($sFunctionFolderPath&"11111111111111111111111111111111111111111111111111"&"\22222222222222222222222222222222222222222222222222"&"\333333333333333333333333333333333333333333333333333"&"\44444444444444444444444444444444444444444444444444"&"\5555555555555555566666666666")
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#2|#0")
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	_GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime(2)
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "11111111111111111111111111111111111111111111111111")                                                                                                                                                                                                                     
	_GUICtrlTreeView_Expand($hTreeView, $hItemFound1)
	Common_SleepTime(2)
	$hItemFound2 = _GUICtrlTreeView_FindItem($hTreeView, "22222222222222222222222222222222222222222222222222")
	_GUICtrlTreeView_Expand($hTreeView, $hItemFound2)
	Common_SleepTime(2)
	$hItemFound3 = _GUICtrlTreeView_FindItem($hTreeView, "333333333333333333333333333333333333333333333333333")
	_GUICtrlTreeView_Expand($hTreeView, $hItemFound3)
	Common_SleepTime(2)
	$hItemFound4 = _GUICtrlTreeView_FindItem($hTreeView, "44444444444444444444444444444444444444444444444444")
	_GUICtrlTreeView_Expand($hTreeView, $hItemFound4)
	Common_SleepTime(2)
	$hItemFound5 = _GUICtrlTreeView_FindItem($hTreeView, "5555555555555555566666666666")
	Common_SleepTime(2)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItemFound5,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItemFound5,"right")
	Common_SleepTime(2)
	Send("{DOWN}")
	Common_SleepTime(1)
	send("{ENTER}")
	Common_SleepTime(2)
	DirRemove($sFunctionFolderPath&"11111111111111111111111111111111111111111111111111",1)
    If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & ":Not message to refer user the folder is not existed" , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf	
EndFunc

Func TreeView2_2_16()
	Local $TestCaseID = "2.2.16"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#2")
	Common_SleepTime(1) 
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#2|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "WINDOWS")
	Common_SleepTime(2)
    If $hItemFound Then
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0  	
	Else
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
	EndIf
EndFunc
#cs
Func TreeView2_2_19()
	Local $TestCaseID = "2.2.19"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	FileSetAttrib("C:\TreeView\no write authority", "+R")				; set the folder to read only
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#2|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	_GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime(2)
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "no write authority")
	_GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1)
	Common_SleepTime(2)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1,"right")
	Common_SleepTime(2)
	$hMenu=WinGetHandle("[Class:#32768]")
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hMenu)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#ce

Func TreeView2_2_20()
	Local $TestCaseID = "2.2.20"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItemFound = _GUICtrlTreeView_GetSelection($hTreeView)
	Common_SleepTime(2) 
	_GUICtrlTreeView_ClickItem($hTreeView,$hItemFound,"right")
	_GUICtrlTreeView_SelectItem($hTreeView,$hItemFound,"right")
	Common_SleepTime()
	Send("{DOWN}")
	Common_SleepTime()
	send("{ENTER}")
	Common_SleepTime(2)
	Send("{ENTER}")
	Common_SleepTime(2)
   $hItemFound = _GUICtrlTreeView_FindItem($hTreeView, $sMyPageManagerSampleFolder)
	$n=_GUICtrlTreeView_GetChildCount($hTreeView,$hItemFound)
    If $n=1 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile& ":Please check the subfolder count under the  "&$sMyPageManagerSampleFolder & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_2_21()
	Local $TestCaseID = "2.2.21"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItemFound = _GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView,$hItemFound,"right")
	_GUICtrlTreeView_SelectItem($hTreeView,$hItemFound,"right")
	Common_SleepTime()
	Send("{DOWN}")
	Common_SleepTime()
	send("{ENTER}")
	Common_SleepTime(2)
	Send("{ENTER}")
	Common_SleepTime(2)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder&"\New Folder", 1)
	Common_SleepTime(6)
   $hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "New Folder")
	_GUICtrlTreeView_ClickItem($hTreeView,$hItemFound,"right")
	_GUICtrlTreeView_SelectItem($hTreeView,$hItemFound,"right")
	Common_SleepTime(2) 
	$h1=WinGetHandle("[Class:#32768]")
	Common_SleepTime(1) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $h1)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#cs
Func TreeView2_3_6()
	Local $TestCaseID = "2.3.6"
	Local $sCusMsg = '(Alert messgae about cannot copy driver to this location)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "", $hTreeView, "Expand", "#0|#2")
	Common_SleepTime(4) 
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	MouseClickDrag("left",$posTreeview[0]+100,$posTreeview[1]+320,$posTreeview[0]+100,$posTreeview[1]+340)
	Common_SleepTime(2) 
	If Not Common_ScreenCaprureWindow_Ex($PerformResultPath, $sCaptureImage, $sPagemanagerAlertTitle2, $sPagemanagerAlertMsg, $TestCaseID, $sTreeViewFunctionName) Then Return False
	Send("{enter}")
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_3_7()
	Local $TestCaseID = "2.3.7"
	Local $sCusMsg = '(Alert message about cannot copy folder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	If $bisHasCloudStorageTreeview == 1 Then
		MouseClickDrag("left",135,581,113,565)
	ElseIf $bisHasCloudStorageTreeview == 0 Then
		MouseClickDrag("left",120, 428,94, 410)
	EndIf	
	Common_SleepTime(2) 
	If Not Common_ScreenCaprureWindow_Ex($PerformResultPath, $sCaptureImage, $sPagemanagerAlertTitle, $sPagemanagerAlertMsg, $TestCaseID, $sTreeViewFunctionName) Then Return False
	Send("{enter}")
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_3_8()
	Local $TestCaseID = "2.3.8"
	Local $sCusMsg = '(Alert message about cannot copy folder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	If $bisHasCloudStorageTreeview == 1 Then
		MouseClickDrag("left",113,565,135,581)
	ElseIf $bisHasCloudStorageTreeview == 0 Then
		MouseClickDrag("left",94, 410,120, 428)
	EndIf	
	Common_SleepTime(2) 
   If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf	
EndFunc
#ce
#cs
Func TreeView2_3_9()
	Local $TestCaseID = "2.3.9"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView,$hPM,"right")
	_GUICtrlTreeView_SelectItem($hTreeView,$hPM,"right")
	Common_SleepTime()
	Send("{DOWN}")
	Common_SleepTime()
	send("{ENTER}")
	Common_SleepTime(2)
	Send($sMyPageManagerSampleFolder)
	Common_SleepTime(2)
	send("{ENTER}")
	Common_SleepTime(4)
	MouseClickDrag("left",$posTreeview[0]+100,$posTreeview[1]+160,$posTreeview[0]+100,$posTreeview[1]+120)
	Common_SleepTime(2) 
   If WinExists($sConfirmFolderReplacement) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sConfirmFolderReplacement)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf	
EndFunc

Func TreeView2_3_10()
	Local $TestCaseID = "2.3.10"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView,$hPM,"right")
	_GUICtrlTreeView_SelectItem($hTreeView,$hPM,"right")
	Common_SleepTime()
	Send("{DOWN}")
	Common_SleepTime()
	send("{ENTER}")
	Common_SleepTime(2)
	Send($sMyPageManagerSampleFolder)
	Common_SleepTime(2)
	send("{ENTER}")
	Common_SleepTime(4)
	MouseClickDrag("left",$posTreeview[0]+100,$posTreeview[1]+160,$posTreeview[0]+100,$posTreeview[1]+120)
	Common_SleepTime(2) 
	ControlClick("Confirm Folder Replacement","",13003)			;click no button
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_3_11()
	Local $TestCaseID = "2.3.11"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	Common_SleepTime(2) 
	_GUICtrlTreeView_ClickItem($hTreeView,$hPM,"right")
	_GUICtrlTreeView_SelectItem($hTreeView,$hPM,"right")
	Common_SleepTime()
	Send("{DOWN}")
	send("{ENTER}")
	Common_SleepTime(2)
	Send($sMyPageManagerSampleFolder)
	Common_SleepTime(2)
	send("{ENTER}")
	Common_SleepTime(4)
	MouseClickDrag("left",$posTreeview[0]+100,$posTreeview[1]+160,$posTreeview[0]+100,$posTreeview[1]+120)
	Common_SleepTime(2) 
	ControlClick("Confirm Folder Replacement","",13001)		;click yes button
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

;cannot make the file monopolize
Func TreeView2_3_12()
	Local $TestCaseID = "2.3.12"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_SleepTime(2) 
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	Common_SleepTime(2) 
	_GUICtrlTreeView_ClickItem($hTreeView,$hPM,"right")
	_GUICtrlTreeView_SelectItem($hTreeView,$hPM,"right")
	Common_SleepTime()
	Send("{DOWN}")
	send("{ENTER}")
	Common_SleepTime(2)
	Send("My PageManager")
	Common_SleepTime(2)
	send("{ENTER}")
	Common_SleepTime(4)
	MouseClickDrag("left",129,345,98,295)
	Common_SleepTime(4) 
	ControlClick("Confirm Folder Replacement","",13001)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	Common_SleepTime(2)
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
	Else
		Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc


Func TreeView2_3_18()
	Local $TestCaseID = "2.3.18"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$B=_GUICtrlTreeView_GetCount($hTreeView)
	Common_SleepTime(2) 
	Send("{CTRLDOWN}")
	MouseClickDrag("left",$posTreeview[0]+100,$posTreeview[1]+210,$posTreeview[0]+100,$posTreeview[1]+140)
	Common_SleepTime() 
	Send("{CTRLUP}")
	Common_SleepTime(2) 
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#1|#2|#0")
	Common_SleepTime() 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, $sMyPageManagerSampleFolder)
	$n=_GUICtrlTreeView_GetChildCount($hTreeView,$hItemFound)
	$F=_GUICtrlTreeView_GetCount($hTreeView)
	Common_SleepTime(2)
	If $n=1 And $B+1 = $F Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_3_19()
	Local $TestCaseID = "2.3.19"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$B=_GUICtrlTreeView_GetCount($hTreeView)
	Common_SleepTime(2) 
	Send("{CTRLDOWN}")
	MouseClickDrag("left",$posTreeview[0]+100,$posTreeview[1]+210,$posTreeview[0]+100,$posTreeview[1]+140)
	Common_SleepTime() 
	Send("{CTRLUP}")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#1|#2|#0")
	Common_SleepTime()
	send("!e")
	Common_SleepTime() 
	Send("o")
	Common_SleepTime(2)
	$F=_GUICtrlTreeView_GetCount($hTreeView)
	Common_SleepTime(2)
    If $B = $F Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_3_20()
	Local $TestCaseID = "2.3.20"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	Common_SleepTime(2) 
	MouseClickDrag("left",$posTreeView[0]+100,$posTreeView[1]+140,$posTreeView[0]+100,$posTreeView[1]+340)
	Common_SleepTime(2) 
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#1|#1")
	Common_SleepTime(2) 
	$size = DirGetSize("D:\"&$sMyPageManagerSampleFolder)
	If $size>0 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_3_21()
	Local $TestCaseID = "2.3.21"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	Common_SleepTime(2)
	Send("{CTRLDOWN}")	
	MouseClickDrag("left",$posTreeView[0]+100,$posTreeView[1]+140,$posTreeView[0]+100,$posTreeView[1]+340)
	Common_SleepTime() 
	Send("{CTRLUP}")
	Common_SleepTime(2) 
	$size = DirGetSize("D:\"&$sMyPageManagerSampleFolder)
	If $size>0 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
	
EndFunc

Func TreeView2_3_22()
	Local $TestCaseID = "2.3.22"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	Common_SleepTime(2)
	Send("{CTRLDOWN}")	
	MouseClickDrag("left",$posTreeView[0]+100,$posTreeView[1]+140,$posTreeView[0]+100,$posTreeView[1]+340)
	Common_SleepTime() 
	Send("{CTRLUP}")
	Common_SleepTime(2) 
	Send("^z")
	Common_SleepTime(2) 
	$size = DirGetSize("D:\"&$sMyPageManagerSampleFolder)
	If $size>0 Then
		Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0  	
	Else
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
	EndIf
EndFunc

Func TreeView2_3_23()
	Local $TestCaseID = "2.3.23"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	Common_SleepTime(2)
	Send("{CTRLDOWN}")	
	MouseClickDrag("left",$posTreeView[0]+100,$posTreeView[1]+140,$posTreeView[0]+100,$posTreeView[1]+340)
	Common_SleepTime() 
	Send("{CTRLUP}")
	Common_SleepTime(2) 
	Send("^z")
	Common_SleepTime(2) 
	Send("^y")
	Common_SleepTime(2) 
	Common_SleepTime(2) 
	$size = DirGetSize("D:\"&$sMyPageManagerSampleFolder)
	If $size>0 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_4_5()
	Local $TestCaseID = "2.4.5"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView,$hPM,"right")
	_GUICtrlTreeView_SelectItem($hTreeView,$hPM,"right")
	Common_SleepTime()
	Send("{DOWN}")
	Common_SleepTime()
	send("{ENTER}")
	Common_SleepTime(2)
	Send($sMyPageManagerSampleFolder)
	Common_SleepTime(2)
	send("{ENTER}")
	Common_SleepTime(4)
	MouseClick("left",$posTreeview[0]+100,$posTreeview[1]+140)
	Common_SleepTime()
	MouseClick("left",$posTreeview[0]+100,$posTreeview[1]+140)
	Common_SleepTime(2) 
	Send("11111")
	Common_SleepTime()
	send("{ENTER}")
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
   If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check the "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#ce

Func TreeView2_5_6()
	Local $TestCaseID = "2.5.6"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	$hItemFound=_GUICtrlTreeView_FindItem($hTreeView,"Computer")
	$h1=_GUICtrlTreeView_GetFirstChild($hTreeView, $hItemFound)
	$h2=_GUICtrlTreeView_GetNextChild($hTreeView, $h1)
	_GUICtrlTreeView_ClickItem($hTreeView, $h2,"right")
	_GUICtrlTreeView_SelectItem($hTreeView,$h2,"right")
	Common_SleepTime(2) 
	$hMenu=WinGetHandle("[Class:#32768]")
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hMenu)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
    If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check the "&$sCaptureImage &$sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_5_7()
	Local $TestCaseID = "2.5.7"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)	
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem=_GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView,$hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView,$hItem,"right")
	Common_SleepTime(2) 
	$hMenu=WinGetHandle("[Class:#32768]")
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hMenu)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
    If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check the "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_5_8()
	Local $TestCaseID = "2.5.8"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem=_GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView,$hItem)
	_GUICtrlTreeView_SelectItem($hTreeView,$hItem)
	Common_SleepTime(2) 
	Send("!e")
	Common_SleepTime(2)
	$hMenu=WinGetHandle("[Class:#32768]")
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hMenu)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
    If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check the "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_5_9()
	Local $TestCaseID = "2.5.9"
	Local $sCusMsg = '(The "My Pagemanager" folder should under the "Treeview" folder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Send("{DOWN}")
	Common_SleepTime(1)
	Send("{Enter}")
	Common_SleepTime(1)
	Send("{Enter}")
	Common_SleepTime(2)
	$h=_GUICtrlTreeView_FindItem($hTreeView,$sMyPageManagerSampleFolder)
	_GUICtrlTreeView_ClickItem($hTreeView, $h,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $h,"right")
	Send("{DOWN}")
	Common_SleepTime(1)
	Send("{DOWN}")
	Common_SleepTime(1)
	Send("{Enter}")
	Common_SleepTime(2)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime()
	send("^v")
	Common_SleepTime(2)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView, $h1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check the "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_5_10()
	Local $TestCaseID = "2.5.10"
	Local $sCusMsg = '(The "My Pagemanager" folder should under the "Treeview" folder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Send("{DOWN}")
	Sleep(300)
	Send("{Enter}")
	Sleep(300)
	Send("{Enter}")
	Common_SleepTime(2)
	$h=_GUICtrlTreeView_FindItem($hTreeView,$sMyPageManagerSampleFolder)
	_GUICtrlTreeView_ClickItem($hTreeView, $h)
	_GUICtrlTreeView_SelectItem($hTreeView, $h)
	Send("!e")
	Common_SleepTime(2)
	Send("u")
	Common_SleepTime(2)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	Sleep(500)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime()
	send("^v")
	Common_SleepTime(2)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView, $h1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists('C:\TreeView\My PageManager') Then
	;If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check the "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_5_11()
	Local $TestCaseID = "2.5.11"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Send("{DOWN}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime(2)
	$h=_GUICtrlTreeView_FindItem($hTreeView,$sMyPageManagerSampleFolder)
	_GUICtrlTreeView_ClickItem($hTreeView, $h)
	_GUICtrlTreeView_SelectItem($hTreeView, $h)
	Send("!e")
	Common_SleepTime()
	Send("u")
	Common_SleepTime(2)	
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime()
	send("^v")
	Common_SleepTime(4)
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Common_SleepTime(2) 
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & ":Not message to refer user the folder is not existed" , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf	
EndFunc

Func TreeView2_5_12()
	Local $TestCaseID = "2.5.12"
	Local $sCusMsg = '(Alert message about target folder is source of subfolder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$posTreeview = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Send("{DOWN}")
	Common_SleepTime(1)
	Send("{Enter}")
	Common_SleepTime(1)
	Send("{Enter}")
	Common_SleepTime(2)
	$h=_GUICtrlTreeView_FindItem($hTreeView,$sMyPageManagerSampleFolder)
	_GUICtrlTreeView_ClickItem($hTreeView, $h)
	_GUICtrlTreeView_SelectItem($hTreeView, $h)
	Send("!e")
	Common_SleepTime(1)
	Send("u")
	Common_SleepTime(2)	
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sNewFolderName)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime()
	send("^v")
	Common_SleepTime(4)
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf	
EndFunc
 #cs
Func TreeView2_5_21()
	Local $TestCaseID = "2.5.21"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	Common_SwitchToFolderInRootDiskC($hPMHandle,$sSectionNameTreeView)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	ControlTreeView ($hPMHandle, "",$sBrowseForFolderTreeView,"Expand", "#0|#1|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	 _GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime()
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "OS sharing")
	_GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1)
	Common_SleepTime(2)
	Send("^x")
	Common_SleepTime(2)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,"My Music")
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime()
	send("^v")
	Common_SleepTime(2)
    If WinExists("Presto! PageManager") Then
		$message=ControlGetText("Presto! PageManager","",65535)
		If $message="The folder shared under the name is C:\TreeView\OS sharing, and it may be in use in the network. If you remove or move the folder, the shared folder will be closed. Do you want to continue?" Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		Else
			Common_WriteLog($sFaile, $TestCaseID & $sFailLogMsg,$sTreeViewFunctionName,$bReproduceTestCase)
		EndIf
    Else
	    Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\My Music\"&$sMyPageManagerSampleFolder, 1)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
EndFunc

Func TreeView2_5_22()
	Local $TestCaseID = "2.5.22"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime(2) 
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(2)
	ControlClick("Share","",6005)
	Common_SleepTime(2)
	ControlClick("Share","",1)
	Common_SleepTime(2)
	Send("^x")
	Common_SleepTime(2)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,"My Music")
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime()
	send("^v")
	Common_SleepTime(2)
    If WinExists("Presto! PageManager") Then
		$message=ControlGetText("Presto! PageManager","",65535)
		If $message="The folder shared under the name is C:\TreeView\OS sharing, and it may be in use in the network. If you remove or move the folder, the shared folder will be closed. Do you want to continue?" Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		EndIf
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\My Music\"&$sMyPageManagerSampleFolder, 1)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
EndFunc
#ce

Func TreeView2_5_25()
	Local $TestCaseID = "2.5.25"
	Local $sCusMsg = '("My Pagemanager" folder should in "My Documents" fodler)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Send("^x")
	Common_SleepTime(1)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView, $h1)
	$BeforCount = _GUICtrlTreeView_GetCount($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
	send("^v")
	Common_SleepTime(4)
	Send("!e")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')
	_GUICtrlTreeView_Expand($hTreeView, $h1)	
	$AfterCount = _GUICtrlTreeView_GetCount($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
    Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists(@MyDocumentsDir & '\My PageManager') Then
	;If $CaptureCompareResult And $AfterCount=$BeforCount Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_5_26()
	Local $TestCaseID = "2.5.26"
	Local $sCusMsg = '("My Pagemanager" folder should in "Treeview" fodler)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Send("^x")
	Common_SleepTime()
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView, $h1)
	$BeforCount = _GUICtrlTreeView_GetCount($hTreeView)
	Common_SleepTime()
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
	send("^v")
	Common_SleepTime(4)
	Send("!e")
	Common_SleepTime()
	Send("o")
	Common_SleepTime(4)
	Send("!e")
	Common_SleepTime()
	Send("e")
	Common_SleepTime(4)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')
	_GUICtrlTreeView_Expand($hTreeView, $h1)	
	$AfterCount = _GUICtrlTreeView_GetCount($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
    Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists('C:\TreeView\My PageManager') Then
	;If $CaptureCompareResult And $AfterCount=$BeforCount Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_5_27()
	Local $TestCaseID = "2.5.27"
	Local $sCusMsg = '("My Pagemanager" folder should in "My Documents" fodler)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Send("^x")
	Common_SleepTime(1)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView, $h1)
	$BeforCount = _GUICtrlTreeView_GetCount($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
	send("^v")
	Common_SleepTime(4)
	Send("^z")
	Common_SleepTime(4)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')
	_GUICtrlTreeView_Expand($hTreeView, $h1)	
	$AfterCount = _GUICtrlTreeView_GetCount($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
    Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists(@MyDocumentsDir & '\My PageManager') Then
;	If $CaptureCompareResult And $AfterCount=$BeforCount Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_5_28()
	Local $TestCaseID = "2.5.28"
	Local $sCusMsg = '("My Pagemanager" folder should in "Treeview" fodler)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	Sleep(1000)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Sleep(1000)
	Send("^x")
	Sleep(1000)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	Sleep(1000)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	Sleep(1000)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView, $h1)
	$BeforCount = _GUICtrlTreeView_GetCount($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
	send("^v")
	Common_SleepTime(4)
	Send("^z")
	Common_SleepTime(4)
	Send("^y")
	Common_SleepTime(4)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')
	_GUICtrlTreeView_Expand($hTreeView, $h1)	
	$AfterCount = _GUICtrlTreeView_GetCount($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	Sleep(1000)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
    Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists('C:\TreeView\My PageManager') Then
	;If $CaptureCompareResult And $AfterCount=$BeforCount Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_6_6()
	Local $TestCaseID = "2.6.6"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#1|#1")
	$hItemFound=_GUICtrlTreeView_FindItem($hTreeView,"Computer")
	$h1=_GUICtrlTreeView_GetFirstChild($hTreeView, $hItemFound)
	$h2=_GUICtrlTreeView_GetNextChild($hTreeView, $h1)
	_GUICtrlTreeView_ClickItem($hTreeView, $h2)
	Common_SleepTime(2)
	WinActivate($hPMHandle)
	Send("!e")
	Common_SleepTime()
	$hContent=WinGetHandle("[Class:#32768]")
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hContent)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_6_9()
	Local $TestCaseID = "2.6.9"
	Local $sCusMsg = '("My Pagemanager" folder should in "Treeview" folder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Send("{DOWN}")
	Common_SleepTime(1)
	Send("{Enter}")
	Common_SleepTime(1)
	Send("{Enter}")
	Common_SleepTime(2)
	$h=_GUICtrlTreeView_FindItem($hTreeView,"My PageManager")
	_GUICtrlTreeView_ClickItem($hTreeView, $h,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $h,"right")
	Send("{DOWN}")
	Common_SleepTime(1)
	Send("{DOWN}")
	Common_SleepTime(1)
	Send("{DOWN}")
	Common_SleepTime(1)
	Send("{Enter}")
	Common_SleepTime(2)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	Common_SleepTime(2)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView, $h1)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
	send("!e")
	Common_SleepTime(1)
	Send("a")
	Common_SleepTime(5)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists('C:\TreeView\My PageManager') Then
	;If $CaptureCompareResult  Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_6_10()
	Local $TestCaseID = "2.6.10"
	Local $sCusMsg = '("My Pagemanager" folder should in "Treeview" folder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Send("{DOWN}")
	Sleep(300)
	Send("{Enter}")
	Sleep(300)
	Send("{Enter}")
	Common_SleepTime(2)
	$h=_GUICtrlTreeView_FindItem($hTreeView,"My PageManager")
	_GUICtrlTreeView_ClickItem($hTreeView, $h)
	_GUICtrlTreeView_SelectItem($hTreeView, $h)
	Send("!e")
	Common_SleepTime(1)
	Send("c")
	Common_SleepTime(2)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	Common_SleepTime(2)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView, $h1)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $h1,"right")
	Common_SleepTime(2)
	send("{down}")
	Sleep(300)
	send("{down}")
	Sleep(300)
	send("{down}")
	Sleep(300)
	send("{down}")
	Sleep(300)
	Send("{enter}")
	Common_SleepTime(5)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists('C:\TreeView\My PageManager') Then
	;If $CaptureCompareResult  Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_6_11()
	Local $TestCaseID = "2.6.11"
	Local $sCusMsg = '(Alert message about target and dest are same)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Send("{DOWN}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime(2)
	$h=_GUICtrlTreeView_FindItem($hTreeView,"My PageManager")
	_GUICtrlTreeView_ClickItem($hTreeView, $h)
	_GUICtrlTreeView_SelectItem($hTreeView, $h)
	Send("!e")
	Common_SleepTime()
	Send("c")
	Common_SleepTime(2)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')
	_GUICtrlTreeView_Expand($hTreeView, $h1)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
	send("^v")
	Common_SleepTime(4)
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_6_12()
	Local $TestCaseID = "2.6.12"
	Local $sCusMsg = '(Alert message about dest is the sub folder of source folder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Send("{DOWN}")
	Sleep(300)
	Send("{Enter}")
	Sleep(300)
	Send("{Enter}")
	Common_SleepTime(2)
	$h=_GUICtrlTreeView_FindItem($hTreeView,"My PageManager")
	_GUICtrlTreeView_ClickItem($hTreeView, $h)
	_GUICtrlTreeView_SelectItem($hTreeView, $h)
	Send("!e")
	Common_SleepTime(1)
	Send("c")
	Common_SleepTime(2)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sNewFolderName)
	_GUICtrlTreeView_Expand($hTreeView, $h1)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
	send("^v")
	Common_SleepTime(4)
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#cs
;readonly folder
Func TreeView2_6_21()
	Local $TestCaseID = "2.6.21"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#1")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#1|#0")
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_SleepTime(2) 
	$hItemFound2 = _GUICtrlTreeView_FindItem($hTreeView, $sMyPageManagerSampleFolder)
	Common_SleepTime(2)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItemFound2)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItemFound2)
	Common_SleepTime(2)
	Send("^c")
	Common_SleepTime(2)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#1")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo, "Expand", "#0|#1|#0")
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	Common_SleepTime(2) 
	_GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime(2)
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "no write authority")
	Common_SleepTime(2) 
	MouseClickDrag("left",84,639,94,639)	
	Common_SleepTime(2) 
	_GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1)
	Common_SleepTime(2) 
	Send("^v")
	Common_SleepTime(2) 
	If WinExists("Error Copying File or Folder") Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
	Else
		Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
	EndIf
	Send("^z")
	Common_SleepTime(4) 
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
	DirRemove(@MyDocumentsDir& "\" &"New Folder", 1)
EndFunc
#ce

Func TreeView2_6_23()
	Local $TestCaseID = "2.6.23"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Common_SleepTime() 
	$hPM=_GUICtrlTreeView_GetSelection($hTreeView)
	Common_SleepTime(2) 
	_GUICtrlTreeView_ClickItem($hTreeView,$hPM,"right")
	Sleep(300)
	_GUICtrlTreeView_SelectItem($hTreeView,$hPM,"right")
	Common_SleepTime()
	Send("{DOWN}")
	Sleep(300)
	send("{ENTER}")
	Common_SleepTime(2)
	Send($sMyPageManagerSampleFolder)
	Common_SleepTime(2)
	send("{ENTER}")
	Common_SleepTime(2)
	Send("^c")
	Common_SleepTime(2)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $h1 == 0 Then $h1 = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')
	_GUICtrlTreeView_ClickItem($hTreeView,$h1)
	_GUICtrlTreeView_SelectItem($hTreeView,$h1)
	Common_SleepTime(2)
	Send("^v")
	Common_SleepTime(4) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sConfirmFolderReplacement)
	Send("{enter}")
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#cs
;share folder is not create
Func TreeView2_6_24()
	Local $TestCaseID = "2.6.24"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sCaptureImage = $TestCaseID & '.jpg' 
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	Common_SleepTime() 
	 _GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime()
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "OS sharing")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1)
	  _GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1)
	Common_SleepTime(2)
	Send("^c")
	Common_SleepTime(2)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,"My Music")
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime()
	send("^v")
	Common_SleepTime(2)
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#0|#0")
	Common_SleepTime(2)
    Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	Common_SleepTime(2)
    If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    Else
	    Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\" &"My Music\OS sharing", 1)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
EndFunc
#ce

Func TreeView2_6_25()
	Local $TestCaseID = "2.6.25"
	Local $sCusMsg = '("My Pagemanager" folder should copy in shared "Treeview" fodler)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Send("^c")
	Common_SleepTime(2)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	Common_SleepTime()
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView,$h1)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2) 
	SetShareFolderInPM(True)
	Common_SleepTime(2)
	send("^v")
	Common_SleepTime(5)
    Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2) 
	SetShareFolderInPM(False)
	Common_SleepTime(2)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists('C:\TreeView\My PageManager') Then
	;If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_6_26()
	Local $TestCaseID = "2.6.26"
	Local $sCusMsg = '(My Pagemanager folder should in "My Deocuments fodler")'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Send("^c")
	Common_SleepTime(2)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	Common_SleepTime()
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView,$h1)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
	send("^v")
	Common_SleepTime(2)
	Send("!e")
	Common_SleepTime(1)
	send("o")
	Common_SleepTime(5)
    Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists(@MyDocumentsDir & '\My PageManager') Then
	;If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_6_27()
	Local $TestCaseID = "2.6.27"
	Local $sCusMsg = '("My Pagemanager" folder should in "Treeview" fodler)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Send("^c")
	Common_SleepTime(2)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	Common_SleepTime()
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView,$h1)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
	send("^v")
	Common_SleepTime(2)
	Send("!e")
	Common_SleepTime(1)
	send("o")
	Common_SleepTime(2)
	Send("!e")
	Common_SleepTime(1)
	send("e")
	Common_SleepTime(5)
   Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists( 'C:\TreeView\My PageManager') Then
	;If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_6_28()
	Local $TestCaseID = "2.6.28"
	Local $sCusMsg = '("My Pagemanager" folder should in "My Documents" fodler)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Send("^c")
	Common_SleepTime(2)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	Common_SleepTime()
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView,$h1)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
	send("^v")
	Common_SleepTime(2)
	send("^z")
	Common_SleepTime(5)
   Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists( @MyDocumentsDir & '\My PageManager') Then
;	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_6_29()
	Local $TestCaseID = "2.6.29"
	Local $sCusMsg =  '("My Pagemanager" folder should in "Treeview" fodler)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Send("^c")
	Common_SleepTime(2)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2|#0")
	Common_SleepTime()
	$h1=_GUICtrlTreeView_FindItem($hTreeView,$sTreeViewFunctionName)
	_GUICtrlTreeView_Expand($hTreeView,$h1)
	_GUICtrlTreeView_ClickItem($hTreeView, $h1)
	_GUICtrlTreeView_SelectItem($hTreeView, $h1)
	Common_SleepTime(2)
	send("^v")
	Common_SleepTime(2)
	send("^z")
	Common_SleepTime(2)
	send("^y")
	Common_SleepTime(5)
   Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists( 'C:\TreeView\My PageManager') Then
	;If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_7_8()
	Local $TestCaseID = "2.7.8"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"left",False,2)
	Common_SleepTime()
	Send("{F2}")
	Common_SleepTime(2)
	send("{DEL}")
	Common_SleepTime(2)
	Send("{Enter}")
	Common_SleepTime(4)
    If _GUICtrlTreeView_FindItem($hTreeView,$sMyPageManagerSampleFolder) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_7_9()
	Local $TestCaseID = "2.7.9"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"left",False,2)
	Common_SleepTime()
	Send("{F2}")
	Common_SleepTime(2)
	send("a s d f")
	Common_SleepTime(2)
	Send("{Enter}")
	Common_SleepTime(4)
    If _GUICtrlTreeView_FindItem($hTreeView,"a s d f") Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_7_10()
	Local $TestCaseID = "2.7.10"
	Local $sCusMsg = '(Alert message about name is incorrect)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"left",False,2)
	Common_SleepTime()
	Send("{F2}")
	Common_SleepTime(2)
	send("/\*?<>")
	Common_SleepTime(2)
	Send("{Enter}")
	Common_SleepTime(4) 
	If WinExists($sRenameTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sRenameTitle)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_7_11()
	Local $TestCaseID = "2.7.11"
	Local $sCusMsg = '(Alert meesage about name is too long)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"left",False,2)
	Common_SleepTime()
	Send("{F2}")
	Common_SleepTime(2)
	send("111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111")
	Common_SleepTime(2)
	Send("{Enter}")
	Common_SleepTime(4) 
	If WinExists($sRenameTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sRenameTitle)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_7_12()
	Local $TestCaseID = "2.7.12"
	Local $sCusMsg = '(Alert msssgae about is replace the folder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_FindItem ($hTreeView,$sDocuments)
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	;creat new folder
	Send("{down}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime()
	Send("{F2}")
	Common_SleepTime(2)
	send($sMyPageManagerSampleFolder)
	Common_SleepTime(2)
	Send("{Enter}")
	Common_SleepTime(4) 
	If WinExists($sConfirmFolderReplace) Then
		Local $htext = ControlGetHandle($sConfirmFolderReplace,"",16779)
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $htext)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_7_33()
	Local $TestCaseID = "2.7.33"
	Local $sCusMsg = '("There should one "My Pagemanager" fodler under "My Documents" folder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_FindItem ($hTreeView,$sDocuments)
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')		
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	;creat new folder
	Send("{down}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime()
	$nBefor = _GUICtrlTreeView_GetCount($hTreeView)
	Send("{F2}")
	Common_SleepTime(2)
	send($sMyPageManagerSampleFolder)
	Common_SleepTime(2)
	Send("{Enter}")
	Common_SleepTime(4) 
	If WinExists($sConfirmFolderReplace) Then
		ControlClick($sConfirmFolderReplace,"",6)			;click Yes Button
		Common_SleepTime(2) 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
		Common_SleepTime(3) 
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_7_34()
	Local $TestCaseID = "2.7.34"
	Local $sCusMsg = '"New Fodler" and "Mu Pagemanager" foler under "My Documents" folder'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_FindItem ($hTreeView,$sDocuments)
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')		
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	;creat new folder
	Send("{down}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime()
	Send("{Enter}")
	Common_SleepTime()
	$nBefor = _GUICtrlTreeView_GetCount($hTreeView)
	Send("{F2}")
	Common_SleepTime(2)
	send($sMyPageManagerSampleFolder)
	Common_SleepTime(2)
	Send("{Enter}")
	Common_SleepTime(4) 
	If WinExists($sConfirmFolderReplace) Then
		ControlClick($sConfirmFolderReplace,"",2)			;click No Button
		Common_SleepTime(3) 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_7_13()
	Local $TestCaseID = "2.7.13"
	Local $sCusMsg = '(Alert message about name is incorrect)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"left",False,2)
	Common_SleepTime()
	Send("{F2}")
	Common_SleepTime(2)
	send("?&^!")
	Common_SleepTime(2)
	Send("{Enter}")
	Common_SleepTime(4) 
	If WinExists($sRenameTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sRenameTitle)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_7_14()
	Local $TestCaseID = "2.7.14"
	Local $sCusMsg = '(Alert message about name is incorrect)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"left",False,2)
	Common_SleepTime(4)
	Send("{F2}")
	Common_SleepTime(2)
	$file = FileOpen ("C:\Double_Byte.txt", 0)
	$line = FileReadLine ($file, 15)
	Common_SleepTime(2)
	send($line)
	Common_SleepTime(2)
	Send("{Enter}")
	Common_SleepTime(4) 
	If WinExists($sRenameTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sRenameTitle)
		Send("{enter}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_7_15()
	Local $TestCaseID = "2.7.15"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime()
	For $i=0 To 5 
		Send("{DOWN}")
		Sleep(200)
	Next
	Common_SleepTime()
	Send("{Enter}")
    Common_SleepTime(2) 
	Send($sNewFolderName)
    Common_SleepTime() 
	Send("{Enter}")
    Common_SleepTime(2) 
	If _GUICtrlTreeView_FindItem($hTreeView,$sNewFolderName) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_7_16()
	Local $TestCaseID = "2.7.16"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!t")
	Common_SleepTime(1)
	Send("m")
	Common_SleepTime(1)
	Send("m")
	Common_SleepTime(1)
	Send("{Enter}")
    Common_SleepTime(2) 
	Send($sNewFolderName)
    Common_SleepTime() 
	Send("{Enter}")
    Common_SleepTime(2) 
	If _GUICtrlTreeView_FindItem($hTreeView,$sNewFolderName) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc
#cs
Func TreeView2_7_17()
	Local $TestCaseID = "2.7.17"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"left",False,2)
    Common_SleepTime(4) 
	Send($sNewFolderName)
    Common_SleepTime() 
	Send("{Enter}")
    Common_SleepTime(2) 
	If _GUICtrlTreeView_FindItem($hTreeView,$sNewFolderName) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_7_27()
	Local $TestCaseID = "2.7.27"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	Common_SleepTime() 
	 _GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime()
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "OS sharing")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1)
	  _GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1)
	Common_SleepTime(2)
	Send("{F2}")
	Common_SleepTime(2)
	send("aaaaa")
	Common_SleepTime(2)
	Send("{ENTER}")
	Common_SleepTime(2)
	If WinExists("Sharing") Then
		$hSharing=WinGetHandle("Sharing")
		Common_SleepTime(2)
		 Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hSharing)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		Else
			Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
	EndIf	
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\" &"My Music\OS sharing", 1)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
	DirRemove(@MyDocumentsDir& "\" &"aaaaa", 1)
EndFunc
#ce

Func TreeView2_7_28()
	Local $TestCaseID = "2.7.28"
	Local $sCusMsg = '(Alert message about folder has been shared)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	SetShareFolderInPM()
	Common_SleepTime()
	Send("{F2}")
	Send($sNewFolderName)
	Send("{Enter}")
	Common_SleepTime(4) 
   If WinExists($shareMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $shareMessageTitle)
		Send("{esc}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		SetShareFolderInPM(False)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_7_29()
	Local $TestCaseID = "2.7.29"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"left",False,2)
	Common_SleepTime()
	Send("{F2}")
    Common_SleepTime(2) 
	Send($sNewFolderName)
    Common_SleepTime() 
	Send("{Enter}")
    Common_SleepTime(2) 
	Send("!e")
	Common_SleepTime(1)
	Send("o")
    Common_SleepTime(2)
	If _GUICtrlTreeView_FindItem($hTreeView,$sMyPageManagerSampleFolder) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_7_30()
	Local $TestCaseID = "2.7.30"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"left",False,2)
	Common_SleepTime()
	Send("{F2}")
    Common_SleepTime(2) 
	Send($sNewFolderName)
    Common_SleepTime() 
	Send("{Enter}")
    Common_SleepTime(2) 
	Send("!e")
	Common_SleepTime(1)
	Send("o")
    Common_SleepTime(2)
	Send("!e")
	Common_SleepTime(1)
	Send("e")
    Common_SleepTime(2)
	If _GUICtrlTreeView_FindItem($hTreeView,$sNewFolderName) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_7_31()
	Local $TestCaseID = "2.7.31"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"left",False,2)
	Common_SleepTime()
	Send("{F2}")
    Common_SleepTime(2) 
	Send($sNewFolderName)
    Common_SleepTime() 
	Send("{Enter}")
    Common_SleepTime(2) 
	Send("^z")
    Common_SleepTime(2)
	If _GUICtrlTreeView_FindItem($hTreeView,$sMyPageManagerSampleFolder) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_7_32()
	Local $TestCaseID = "2.7.32"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"left",False,2)
	Common_SleepTime()
	Send("{F2}")
    Common_SleepTime(2) 
	Send($sNewFolderName)
    Common_SleepTime() 
	Send("{Enter}")
    Common_SleepTime(2) 
	Send("^z")
    Common_SleepTime(2)
	Send("^y")
    Common_SleepTime(2)
	If _GUICtrlTreeView_FindItem($hTreeView,$sNewFolderName) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_8_6()
	Local $TestCaseID = "2.8.6"
	Local $sCusMsg = '(No folder has been deleted)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	$hItemFound=_GUICtrlTreeView_FindItem($hTreeView,$sMyComputerName)
	$h1=_GUICtrlTreeView_GetFirstChild($hTreeView, $hItemFound)
	$h2=_GUICtrlTreeView_GetNextChild($hTreeView, $h1)
	Common_SleepTime(2)
	_GUICtrlTreeView_ClickItem($hTreeView, $h2)
	_GUICtrlTreeView_SelectItem($hTreeView, $h2)
	Common_SleepTime(2) 
	Send("{del}")
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_8_7()
	Local $TestCaseID = "2.8.7"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime()
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
    Common_SleepTime() 
	Send("{Enter}")
    Common_SleepTime(4) 
   If WinExists($sDeleteFolderTitle) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1  
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_8_8()
	Local $TestCaseID = "2.8.8"
	Local $sCusMsg = '(My Pagemanager foler should in tree view)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime()
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
    Common_SleepTime() 
	Send("{Enter}")
    Common_SleepTime(4) 
	If WinExists($sDeleteFolderTitle) Then
		ControlClick($sDeleteFolderTitle,"",7)				;click cancel button
		Common_SleepTime(2) 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
		Send("{esc}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If FileExists(@MyDocumentsDir & '\My PageManager') Then
		;If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_8_9()
	Local $TestCaseID = "2.8.9"
	Local $sCusMsg = '(My Pagemanager foler should delete in tree view)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime()
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
	Sleep(200)
	Send("{DOWN}")
    Common_SleepTime() 
	Send("{Enter}")
    Common_SleepTime(4) 
	If WinExists($sDeleteFolderTitle) Then
		ControlClick($sDeleteFolderTitle,"",6)				;click OK button
		Common_SleepTime(2) 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
		Send("{esc}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If Not FileExists(@MyDocumentsDir & '\My PageManager') Then
		;If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_8_10()
	Local $TestCaseID = "2.8.10"
	Local $sCusMsg = '(My Pagemanager foler should delete in tree view)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!e")
	Common_SleepTime(1)
	Send("d")
	Common_SleepTime(1)
	Send("{enter}")
    Common_SleepTime(4) 
	If WinExists($sDeleteFolderTitle) Then
		ControlClick($sDeleteFolderTitle,"",6)				;click OK button
		Common_SleepTime(2) 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
		Send("{esc}")
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If Not FileExists(@MyDocumentsDir & '\My PageManager') Then
		;If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_8_11()
	Local $TestCaseID = "2.8.11"
	Local $sCusMsg = '(My Pagemanager foler should delete in tree view)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("{del}")
    Common_SleepTime(4) 
	If WinExists($sDeleteFolderTitle) Then
		ControlClick($sDeleteFolderTitle,"",6)				;click OK button
		Common_SleepTime(2) 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If Not FileExists(@MyDocumentsDir & '\My PageManager') Then
		;If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_8_12()
	Local $TestCaseID = "2.8.12"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("{del}")
    Common_SleepTime(2) 
	ControlClick($sDeleteFolderTitle,"",6)				;click OK button
	Common_SleepTime(4) 
	Send("!e")
	Common_SleepTime()
	Send("o")
	Common_SleepTime(6) 
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#1")
	Common_SleepTime(2) 
	If _GUICtrlTreeView_FindItem($hTreeView,$sMyPageManagerSampleFolder) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile &$sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_8_13()
	Local $TestCaseID = "2.8.13"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("{del}")
    Common_SleepTime(2) 
	ControlClick($sDeleteFolderTitle,"",6)				;click OK button
	Common_SleepTime(4) 
	Send("!e")
	Common_SleepTime()
	Send("o")
	Common_SleepTime(4) 
	Send("!e")
	Common_SleepTime(1)
	Send("e")
	Common_SleepTime(2) 
	ControlClick($sDeleteFolderTitle,"",6)				;click OK button
	Common_SleepTime(2) 
	ControlTreeView ($hPMHandle, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	Common_SleepTime(2) 
	If  _GUICtrlTreeView_FindItem($hTreeView,"My PageManager") Then
		Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0	
	Else
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
	EndIf
EndFunc

Func TreeView2_8_14()
	Local $TestCaseID = "2.8.14"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("{del}")
    Common_SleepTime(2) 
	ControlClick($sDeleteFolderTitle,"",6)				;click OK button
	Common_SleepTime(4) 
	Send("^z")
	Common_SleepTime(6) 
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#1")
	Common_SleepTime(2) 
	If _GUICtrlTreeView_FindItem($hTreeView,$sMyPageManagerSampleFolder) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_8_15()
	Local $TestCaseID = "2.8.15"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("{del}")
    Common_SleepTime(6) 
	ControlClick($sDeleteFolderTitle,"",6)				;click OK button
	Common_SleepTime(8) 
	Send("^z")
	Common_SleepTime(8) 
	Send("^y")
	Common_SleepTime(4) 
	ControlClick($sDeleteFolderTitle,"",6)	            ;click OK button			
	Common_SleepTime(4) 
	ControlTreeView ($hPMHandle, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	Common_SleepTime(6) 
	If  _GUICtrlTreeView_FindItem($hTreeView,"My PageManager") Then
		Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0	
	Else
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
	EndIf
EndFunc
#cs
Func TreeView2_8_24()
	Local $TestCaseID = "2.8.24"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	Common_SleepTime() 
	 _GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime()
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "OS sharing")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1)
	  _GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1)
	Common_SleepTime(2)
	Send("{DEL}")
	Common_SleepTime(2)
	ControlClick($sDeleteFolderTitle,"",6)				;click OK button
	Common_SleepTime(2)
    If WinExists("Sharing") Then
		$message=ControlGetText("Sharing","",65535)
		If $message="You are sharing C:\TreeView\OS sharing as OS sharing. Others may be using files in this folder. If you delete the folder, it will no longer be shared. Are you sure you want to delete it?" Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		Else
			Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		EndIf
    Else
	    Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\My Music\"&$sMyPageManagerSampleFolder, 1)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
EndFunc


Func TreeView2_8_25()
	Local $TestCaseID = "2.8.25"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime(2) 
	SetShareFolderInPM()
	Common_SleepTime(2)
	Send("{DEL}")
	Common_SleepTime(2)
	ControlClick($sDeleteFolderTitle,"",6)				;click OK button
	Common_SleepTime(2)
    If WinExists($shareMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $shareMessageTitle)
		Common_SleepTime(2) 
		Send("{esc}")
		SetShareFolderInPM(False)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	ElseIf WinExists("[CLASS:#32770]", "&Yes") Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, "[CLASS:#32770]")
		Common_SleepTime(2) 
		Send("{esc}")
		SetShareFolderInPM(False)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& ":Not message to refer user When delete the sharing folder" , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_9_4()
	Local $TestCaseID = "2.9.4"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Local $posTreeView = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	MouseClickDrag("left",$posTreeView[0]+185,$posTreeView[1],$posTreeView[0]+270,$posTreeView[1])
	Common_SleepTime(2) 
	local $hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime(2) 
	Send("{up}")
	Sleep(200)
	Send("{up}")
	Sleep(200)
	Send("{enter}")
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
   If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#ce

Func TreeView2_9_5()
	Local $TestCaseID = "2.9.5"
	Local $sCusMsg = '("New Folder" should create under "My Pagemanager" folder)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime(2) 
	Send("{DOWN}")
	Sleep(200)
	Send("{ENTER}")
	Sleep(200)
	Send("{ENTER}")
	Common_SleepTime(2) 
	Send("{F5}")
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If FileExists(@MyDocumentsDir & '\My PageManager\New Folder') Then
 ; If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_9_6()
	Local $TestCaseID = "2.9.6"
	Local $sCusMsg = '("My Pagemanager" folder should delete in tree view)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime(2) 
	Send("{DEL}")
	Sleep(200)
	Send("{ENTER}")
	Sleep(200)
	Send("{ENTER}")
	Common_SleepTime(2) 
	Send("{F5}")
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
   If Not FileExists(@MyDocumentsDir & '\My PageManager') Then
   ;If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#cs
Func TreeView2_9_7()
	Local $TestCaseID = "2.9.7"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Local $posTreeView = ControlGetPos($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPMHandle, "",$sTreeViewCtrInfo,"Expand", "#0|#2")
	Common_SleepTime() 
	MouseClickDrag("left",$posTreeView[0]+120,$posTreeView[1]+140,$posTreeView[0]+120,$posTreeView[1]+320)
	Common_SleepTime(6) 
	Send("{F5}")
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
   If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_20()
	Local $TestCaseID = "2.12.20"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	Common_SleepTime() 
	 _GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime()
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "OS sharing")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1,"right")
	  _GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1,"right")
	Common_SleepTime(2) 
	Send("{up}")
	Sleep(200)
	Send("{up}")
	Sleep(200)
	Send("{up}")
	Common_SleepTime() 
	Send("{ENTER}")
	Common_SleepTime(6) 
	$hshare=WinGetHandle("Share")
	Common_SleepTime(8) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hshare)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
    If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func TreeView2_12_21()
	Local $TestCaseID = "2.12.21"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	Common_SleepTime() 
	 _GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime()
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "OS sharing")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1,"right")
	  _GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1,"right")
	Common_SleepTime(2) 
	Send("{up}")
	Send("{up}")
	Send("{up}")
	Common_SleepTime() 
	Send("{ENTER}")
	Common_SleepTime(6) 
	ControlClick("Share","",6005)
	Common_SleepTime() 
	ControlClick("Share","",1)
	Common_SleepTime(2)
    If WinExists("Presto! PageManager") Then
		$t=ControlGetText("Presto! PageManager","",65535)
		Common_SleepTime(2)
		If $t='You have shared "C:\TreeView\OS sharing" by this name, do you want to replace it?' Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		Else
			 Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		EndIf
    Else
	    Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func TreeView2_12_22()
	Local $TestCaseID = "2.12.22"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	Common_SleepTime() 
	 _GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime()
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "OS sharing")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1,"right")
	  _GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1,"right")
	Common_SleepTime(2) 
	Send("{up}")
	Send("{up}")
	Send("{up}")
	Common_SleepTime() 
	Send("{ENTER}")
	Common_SleepTime(6) 
	ControlClick("Share","",6005)
	Common_SleepTime() 
	ControlClick("Share","",1)
	Common_SleepTime(2)
	ControlClick("Presto! PageManager","",6)
	Common_SleepTime(8)
    Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	Common_SleepTime(2)
    If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    Else
	    Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func TreeView2_12_23()
	Local $TestCaseID = "2.12.23"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_SleepTime(6) 
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	Common_SleepTime() 
	 _GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime()
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "OS sharing")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1)
	  _GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1)
	Common_SleepTime(2) 
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	$hshare=WinGetHandle("Share")
	Common_SleepTime(8) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hshare)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	Common_SleepTime(2)
    If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    Else
	    Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func TreeView2_12_24()
	Local $TestCaseID = "2.12.24"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	Common_SleepTime() 
	 _GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime()
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "OS sharing")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1)
	 _GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1)
	Common_SleepTime(2) 
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick("Share","",6005)
	Common_SleepTime() 
	ControlClick("Share","",1)
	Common_SleepTime(2)
    If WinExists("Presto! PageManager") Then
		$t=ControlGetText("Presto! PageManager","",65535)
		Common_SleepTime(2)
		If $t='You have shared "C:\TreeView\OS sharing" by this name, do you want to replace it?' Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		Else
			 Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		EndIf
    Else
	    Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func TreeView2_12_25()
	Local $TestCaseID = "2.12.25"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1")
	ControlTreeView ($hPM, "",$sBrowseForFolderTreeView,"Expand", "#0|#1|#0")
	Common_SleepTime(2) 
	$hItemFound = _GUICtrlTreeView_FindItem($hTreeView, "TreeView")
	Common_SleepTime() 
	 _GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime()
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "OS sharing")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1)
	  _GUICtrlTreeView_SelectItem($hTreeView, $hItemFound1)
	Common_SleepTime(2) 
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick("Share","",6005)
	Common_SleepTime() 
	ControlClick("Share","",1)
	Common_SleepTime(2)
	ControlClick("Presto! PageManager","",6)
	Common_SleepTime(8)
   Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	Common_SleepTime(2)
    If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    Else
	    Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
EndFunc
#ce
Func TreeView2_12_26()
	Local $TestCaseID = "2.12.26"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	Local $hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime()
	Send("{UP}")
	Sleep(200)
	Send("{UP}")
	Sleep(200)
	Send("{UP}")
	Sleep(200)
	Send("{ENTER}")
	Common_SleepTime(8) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sShareDialog)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
   If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_27()
	Local $TestCaseID = "2.12.27"
	Local $sCusMsg = '(Share fodler window)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName) 
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime()
	Send("{UP}")
	Sleep(200)
	Send("{UP}")
	Sleep(200)
	Send("{UP}")
	Sleep(200)
	Send("{ENTER}")
	Common_SleepTime(4) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sShareDialog)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
   If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_28()
	Local $TestCaseID = "2.12.28"
	Local $sCusMsg = '("My Pagemanager" folder should shared in tree view)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime()
	Send("{UP}")
	Sleep(200)
	Send("{UP}")
	Sleep(200)
	Send("{UP}")
	Sleep(200)
	Send("{ENTER}")
	Common_SleepTime(4) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",1)			;click OK button in sharing dialog
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	SetShareFolderInPM(False)
   If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_29()
	Local $TestCaseID = "2.12.29"
	Local $sCusMsg = '(Share fodler window)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sShareDialog)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	SetShareFolderInPM(False)
   If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_30()
	Local $TestCaseID = "2.12.30"
	Local $sCusMsg = '("My Pagemanager" folder should shared in tree view)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(2) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",1)			;click OK button in sharing dialog
	Common_SleepTime(4)
	Common_Close_PM($hPMHandle)
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
    Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_31()
	Local $TestCaseID = "2.12.31"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlSetText($sShareDialog,"",$sShareNameEditBox,"")
	Common_SleepTime(2)
    If ControlCommand($sShareDialog,"",1,"IsEnabled", "")  Then
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    Else
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    EndIf
EndFunc

Func TreeView2_12_32()
	Local $TestCaseID = "2.12.32"
	Local $sCusMsg = '("My Pagemanager" folder should shared in tree view)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlSetText($sShareDialog,"",$sShareNameEditBox,$sNewFolderName)
	Common_SleepTime(2)
	ControlClick($sShareDialog,"",1)			;click OK button in sharing dialog
	Common_SleepTime(2)
    Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage) 
	SetShareFolderInPM(False)
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_33()
	Local $TestCaseID = "2.12.33"
	Local $sCusMsg = '(Alert message about name is incorrct)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(4) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlSetText($sShareDialog,"",$sShareNameEditBox,"<>/?")
	Common_SleepTime(2)
	ControlClick($sShareDialog,"",1)			;click OK button in sharing dialog
    Common_SleepTime(4)
    If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_34()
	Local $TestCaseID = "2.12.34"
	Local $sCusMsg = '(Alert message about name is incorrct)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(4) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	$file = FileOpen ("C:\Double_Byte.txt", 0)
	$line = FileReadLine ($file, 26)
	Common_SleepTime()
	ControlSetText($sShareDialog,"",$sShareNameEditBox,$line)
	Common_SleepTime(2)
	ControlClick($sShareDialog,"",1)			;click OK button in sharing dialog
    Common_SleepTime(4)
    If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& $sFailLogMsg , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_35()
	Local $TestCaseID = "2.12.35"
	Local $sCusMsg = '("New Folder" is shared is tree view)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem = _GUICtrlTreeView_FindItem ($hTreeView,$sDocuments)
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, $sMyDocuments)
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, 'Documents')
	If $hItem == 0 Then $hItem = _GUICtrlTreeView_FindItem($hTreeView, 'My Documents')
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime(2)
	Send("{down}")
	Common_SleepTime(2)
	Send("{enter}")
	Common_SleepTime(2)
	Send("{enter}")
	Common_SleepTime(2)
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime(2) 
	ControlSetText($sShareDialog,"",$sShareNameEditBox,$sMyPageManagerSampleFolder)
	Common_SleepTime(2)
	ControlClick($sShareDialog,"",1)			;click OK button in sharing dialog
    Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#cs
Func TreeView2_12_36()
	Local $TestCaseID = "2.12.36"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick("Share","",6005)
	Common_SleepTime()
	ControlSetText("Share","",6001,"OS sharing")
	Common_SleepTime(2)
	ControlClick("Share","",1)
    Common_SleepTime(6)
    If WinExists("Presto! PageManager") Then
		$hMessage=WinGetHandle("Presto! PageManager")
		Common_SleepTime()
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hMessage)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		Else
			Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		EndIf
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
EndFunc

Func TreeView2_12_37()
	;Common_Close_PM($hPMHandle)
	Local $TestCaseID = "2.12.37"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick("Share","",6005)
	Common_SleepTime()
	ControlSetText("Share","",6001,"OS sharing")
	Common_SleepTime(2)
	ControlClick("Share","",1)
    Common_SleepTime(4)
	If WinExists("Presto! PageManager") Then
		ControlClick("Presto! PageManager","",7)
		Common_SleepTime(4)
		$hShare=WinGetHandle("Share")
		Common_SleepTime() 
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hShare)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		Else
			Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		EndIf
    Else
	    Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
EndFunc

Func TreeView2_12_38()
	Local $TestCaseID = "2.12.38"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB()
	Local $hPMHandle = Common_Run_PageManager()
	Common_SleepTime(6) 
	$hPM=WinGetHandle($hPMHandle)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem,"right")
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem,"right")
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick("Share","",6005)
	Common_SleepTime()
	ControlSetText("Share","",6001,"OS sharing")
	Common_SleepTime(2)
	ControlClick("Share","",1)
     Common_SleepTime(4)
	 If WinExists("Presto! PageManager") Then
		ControlClick("Presto! PageManager","",6)
		Common_SleepTime(4)
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
		Common_SleepTime(2) 
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		Common_SleepTime(2)
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		Else
			Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
		EndIf
    Else
	    Common_WriteLog($sFaile, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)
    EndIf
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
	DeleteShareFolder($hPMHandle)
EndFunc
#ce

Func TreeView2_12_39()
	Local $TestCaseID = "2.12.39"
	Local $sCusMsg = '(Alert message about name is incorrect)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime()
	$file = FileOpen ("C:\Double_Byte.txt", 0)
	$line = FileReadLine ($file, 28)
	Common_SleepTime() 
	ControlSetText($sShareDialog,"",$sShareNameEditBox,$line)
	Common_SleepTime(2)
	ControlClick($sShareDialog,"",1)			;click OK button in sharing dialog
    Common_SleepTime(4)
    If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_40()
	Local $TestCaseID = "2.12.40"
	Local $sCusMsg = '(Alert message about name is incorrect)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime()
	$file = FileOpen ("C:\Double_Byte.txt", 0)
	$line = FileReadLine ($file, 24)
	Common_SleepTime() 
	ControlSetText($sShareDialog,"",$sShareNameEditBox,$line)
	Common_SleepTime(2)
	ControlClick($sShareDialog,"",1)			;click OK button in sharing dialog
    Common_SleepTime(4)
    If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_43()
	Local $TestCaseID = "2.12.43"
	Local $sCusMsg = '(Premisstion Settings dialog)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",$sSetPermissionsButton)
	Common_SleepTime(2) 
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sSetPermissionsDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_44()
	Local $TestCaseID = "2.12.44"
	Local $sCusMsg = '(Add an Account dialog)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName) 
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",$sSetPermissionsButton)
	Common_SleepTime(2) 
	ControlClick($sSetPermissionsDialogTitle,"",6026)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAddanAccountDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_45()
	Local $TestCaseID = "2.12.45"
	Local $sCusMsg = '(you must type a name)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",$sSetPermissionsButton)
	Common_SleepTime(2) 
	ControlClick($sSetPermissionsDialogTitle,"",6026)
	Common_SleepTime(2)
	ControlClick($sAddanAccountDialogTitle,"",1)
    Common_SleepTime(4)
     If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_46()
	Local $TestCaseID = "2.12.46"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",$sSetPermissionsButton)
	Common_SleepTime(2) 
	ControlClick($sSetPermissionsDialogTitle,"",6026)
	Common_SleepTime(2)
	ControlSend($sAddanAccountDialogTitle,"",6007,"SYSTEM")
	Common_SleepTime(2)
	ControlClick($sAddanAccountDialogTitle,"",6025)
	Common_SleepTime(2)
	$t=ControlGetText($sAddanAccountDialogTitle,"",6007)
	Common_SleepTime(2)
    If $t="NT AUTHORITY\SYSTEM" Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
    Else
	    Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_12_47()
	Local $TestCaseID = "2.12.47"
	Local $sCusMsg = '(User SYSTEM in the last)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",$sSetPermissionsButton)
	Common_SleepTime(2) 
	ControlClick($sSetPermissionsDialogTitle,"",6026)
	Common_SleepTime(2)
	ControlSend($sAddanAccountDialogTitle,"",6007,"SYSTEM")
	Common_SleepTime(2)
	ControlClick($sAddanAccountDialogTitle,"",1)
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sSetPermissionsDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_48()
	Local $TestCaseID = "2.12.48"
	Local $sCusMsg = '(the account name is not valid)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",$sSetPermissionsButton)
	Common_SleepTime(2) 
	ControlClick($sSetPermissionsDialogTitle,"",6026)
	Common_SleepTime(2)
	ControlSend($sAddanAccountDialogTitle,"",6007,"AAAAA")
	Common_SleepTime(2)
	ControlClick($sAddanAccountDialogTitle,"",6025)
	Common_SleepTime(4)
	If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_49()
	Local $TestCaseID = "2.12.49"
	Local $sCusMsg = 'Permisstion Settings dialog'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",$sSetPermissionsButton)
	Common_SleepTime(2) 
	ControlClick($sSetPermissionsDialogTitle,"",6026)
	Common_SleepTime(2)
	ControlSend($sAddanAccountDialogTitle,"",6007,"AAAAA")
	Common_SleepTime(2)
	ControlClick($sAddanAccountDialogTitle,"",1)
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sSetPermissionsDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_54()
	Local $TestCaseID = "2.12.54"
	Local $sCusMsg = '(Only two user in Permisstion Settings dialog)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",$sSetPermissionsButton)
	Common_SleepTime(2) 
	ControlClick($sSetPermissionsDialogTitle,"",6015)
	Common_SleepTime(6) 
	$hListView=ControlGetHandle($sSetPermissionsDialogTitle,"",6017)
	_GUICtrlListView_ClickItem($hListView, 0)
	Common_SleepTime(4)
	ControlClick($sSetPermissionsDialogTitle,"",6015)
	Common_SleepTime(3)
	ControlClick($sShareDialog,"",$sSetPermissionsButton)
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sSetPermissionsDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_12_55()
	Local $TestCaseID = "2.12.55"
	Local $sCusMsg = '(Only two user in Permisstion Settings dialog)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime()
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",$sSetPermissionsButton)
	Common_SleepTime(2) 
	ControlClick($sSetPermissionsDialogTitle,"",6015)
	Common_SleepTime(3) 
	$hListView=ControlGetHandle($sSetPermissionsDialogTitle,"",6017)
	_GUICtrlListView_ClickItem($hListView, 0)
	Common_SleepTime(2)
	ControlClick($sSetPermissionsDialogTitle,"",6015)
	Common_SleepTime(2)
	Common_Close_PM($hPMHandle)
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	$hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime()
	Send("h")
	Common_SleepTime(6) 
	ControlClick($sShareDialog,"",$sShareRadioButton)
	Common_SleepTime() 
	ControlClick($sShareDialog,"",$sSetPermissionsButton)
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sSetPermissionsDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_9()
	Local $TestCaseID = "2.13.9"
	Local $sCusMsg = '(Folder Properties window)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sFolderPropertiesDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_12()
	Local $TestCaseID = "2.13.12"
	Local $sCusMsg = '(Authors name is "aaaaa")'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlClick($sFolderPropertiesDialogTitle,"",$sAuthorsAddRemoveButton)
	Common_SleepTime(4)
	ControlSend($sAddRemoveAuthorsDialogTitle,"",1059,"aaaaa")
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",1)
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sFolderPropertiesDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_17()
	Local $TestCaseID = "2.13.17"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlClick($sFolderPropertiesDialogTitle,"",$sAuthorsAddRemoveButton)
	Common_SleepTime(4)
	ControlSend($sAddRemoveAuthorsDialogTitle,"",1059,"aaaaa")
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",1)
	Common_SleepTime(2)
	ControlClick($sFolderPropertiesDialogTitle,"",$sAuthorsAddRemoveButton)
	Common_SleepTime(4)
	$h2=ControlGetHandle($sAddRemoveAuthorsDialogTitle,"",$sFaxFolderCheckBox)
	_GUICtrlListBox_ClickItem($h2,0)
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAddRemoveAuthorsDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_18()
	Local $TestCaseID = "2.13.18"
	Local $sCusMsg = '( no Authors name)'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlClick($sFolderPropertiesDialogTitle,"",$sAuthorsAddRemoveButton)
	Common_SleepTime(4)
	ControlSend($sAddRemoveAuthorsDialogTitle,"",1059,"aaaaa")
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",1)
	Common_SleepTime(2)
	ControlClick($sFolderPropertiesDialogTitle,"",$sAuthorsAddRemoveButton)
	Common_SleepTime(4)
	$h2=ControlGetHandle($sAddRemoveAuthorsDialogTitle,"",$sFaxFolderCheckBox)
	_GUICtrlListBox_ClickItem($h2,0)
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",1057)
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",1)
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sFolderPropertiesDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_19()
	Local $TestCaseID = "2.13.19"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlClick($sFolderPropertiesDialogTitle,"",$sAuthorsAddRemoveButton)
	Common_SleepTime(4)
	ControlSend($sAddRemoveAuthorsDialogTitle,"",1059,"aaaaa")
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(4)
	ControlSend($sAddRemoveAuthorsDialogTitle,"",1059,"bbbbb")
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(4)
	ControlSend($sAddRemoveAuthorsDialogTitle,"",1059,"ccccc")
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",1)
	Common_SleepTime(2)
	ControlClick($sFolderPropertiesDialogTitle,"",$sAuthorsAddRemoveButton)
	Common_SleepTime(4)
	$h2=ControlGetHandle($sAddRemoveAuthorsDialogTitle,"",$sFaxFolderCheckBox)
	_GUICtrlListBox_ClickItem($h2,0)
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",1057)
	Common_SleepTime(2)
	_GUICtrlListBox_ClickItem($h2,0)
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",1057)
	Common_SleepTime(2)
	_GUICtrlListBox_ClickItem($h2,0)
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",1057)
	Common_SleepTime(2)
	_GUICtrlListBox_ClickItem($h2,0)
	Common_SleepTime(2)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",1057)
	Common_SleepTime(3)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAddRemoveAuthorsDialogTitle)
	ControlClick($sAddRemoveAuthorsDialogTitle,"",1)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_21()
	Local $TestCaseID = "2.13.21"
	Local $sCusMsg = 'Keywords is aaaaa'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlClick($sFolderPropertiesDialogTitle,"",$sKeywordsAddRemoveButton)
	Common_SleepTime(4)
	ControlSend($sAddRemoveKeywordsDialogTitle,"",1059,"aaaaa")
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",1)
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sFolderPropertiesDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_26()
	Local $TestCaseID = "2.13.26"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlClick($sFolderPropertiesDialogTitle,"",$sKeywordsAddRemoveButton)
	Common_SleepTime(4)
	ControlSend($sAddRemoveKeywordsDialogTitle,"",1059,"aaaaa")
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",1)
	Common_SleepTime(2)
	ControlClick($sFolderPropertiesDialogTitle,"",$sKeywordsAddRemoveButton)
	Common_SleepTime(4)
	$h2=ControlGetHandle($sAddRemoveKeywordsDialogTitle,"",$sFaxFolderCheckBox)
	_GUICtrlListBox_ClickItem($h2,0)
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAddRemoveKeywordsDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_27()
	Local $TestCaseID = "2.13.27"
	Local $sCusMsg = 'No Keywords'
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlClick($sFolderPropertiesDialogTitle,"",$sKeywordsAddRemoveButton)
	Common_SleepTime(4)
	ControlSend($sAddRemoveKeywordsDialogTitle,"",1059,"aaaaa")
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",1)
	Common_SleepTime(2)
	ControlClick($sFolderPropertiesDialogTitle,"",$sKeywordsAddRemoveButton)
	Common_SleepTime(4)
	$h2=ControlGetHandle($sAddRemoveKeywordsDialogTitle,"",$sFaxFolderCheckBox)
	_GUICtrlListBox_ClickItem($h2,0)
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",1057)
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",1)
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sFolderPropertiesDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_28()
	Local $TestCaseID = "2.13.28"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlClick($sFolderPropertiesDialogTitle,"",$sKeywordsAddRemoveButton)
	Common_SleepTime(4)
	ControlSend($sAddRemoveKeywordsDialogTitle,"",1059,"aaaaa")
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(4)
	ControlSend($sAddRemoveKeywordsDialogTitle,"",1059,"bbbbbb")
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(4)
	ControlSend($sAddRemoveKeywordsDialogTitle,"",1059,"ccccc")
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",$sEmailFolderCheckBox)
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",1)
	Common_SleepTime(2)
	ControlClick($sFolderPropertiesDialogTitle,"",$sKeywordsAddRemoveButton)
	Common_SleepTime(4)
	$h2=ControlGetHandle($sAddRemoveKeywordsDialogTitle,"",$sFaxFolderCheckBox)
	_GUICtrlListBox_ClickItem($h2,0)
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",1057)
	Common_SleepTime(2)
	_GUICtrlListBox_ClickItem($h2,0)
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",1057)
	Common_SleepTime(2)
	_GUICtrlListBox_ClickItem($h2,0)
	Common_SleepTime(2)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",1057)
	Common_SleepTime(3)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAddRemoveKeywordsDialogTitle)
	ControlClick($sAddRemoveKeywordsDialogTitle,"",1)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_29()
	Local $TestCaseID = "2.13.29"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4)  
	$file = FileOpen ("C:\Double_Byte.txt", 0)
	$line = FileReadLine ($file, 14)
	Common_SleepTime()
	ControlSetText($sFolderPropertiesDialogTitle,"",1005,$line)
	Common_SleepTime(8)
	ControlClick($sFolderPropertiesDialogTitle,"",1)
	Common_SleepTime(2)
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4)
	$t=ControlGetText($sFolderPropertiesDialogTitle,"",1005)
	Common_SleepTime(2)
	If $t="C:\BCR_File_Open\??.ldb" Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1  
    Else
	    Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_13_30()
	Local $TestCaseID = "2.13.30"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4)  
	$file = FileOpen ("C:\Double_Byte.txt", 0)
	$line = FileReadLine ($file, 26)
	Common_SleepTime()
	ControlSend($sFolderPropertiesDialogTitle,"",1005,"sdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgd")
	Common_SleepTime(8)
	ControlClick($sFolderPropertiesDialogTitle,"",1)
	Common_SleepTime(2)
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4)
	$t=ControlGetText($sFolderPropertiesDialogTitle,"",1005)
	Common_SleepTime(2)
	If $t="sdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgdfgdfgsdfgd" Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1  
    Else
	    Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_13_31()
	Local $TestCaseID = "2.13.31"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4)  
	$file = FileOpen ("C:\Double_Byte.txt", 0)
	$line = FileReadLine ($file, 28)
	Common_SleepTime()
	ControlSetText($sFolderPropertiesDialogTitle,"",1005,$line)
	Common_SleepTime(8)
	ControlClick($sFolderPropertiesDialogTitle,"",1)
	Common_SleepTime(2)
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4)
	$t=ControlGetText($sFolderPropertiesDialogTitle,"",1005)
	Common_SleepTime(2)
	If $t="!@#$%%^&*()_+" Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1  
    Else
	    Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_13_32()
	Local $TestCaseID = "2.13.32"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4)  
	ControlSetText($sFolderPropertiesDialogTitle,"",1005,"!@#$%^&*()_+{}|<>?:")
	Common_SleepTime(8)
	ControlClick($sFolderPropertiesDialogTitle,"",1)
	Common_SleepTime(2)
	Common_Close_PM($hPMHandle) 
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(2)  
	$t=ControlGetText($sFolderPropertiesDialogTitle,"",1005)
	Common_SleepTime(2)
	If $t="!@#$%^&*()_+{}|<>?:" Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
	Common_Close_PM($hPMHandle)
	DirRemove(@MyDocumentsDir& "\" &$sMyPageManagerSampleFolder, 1)
EndFunc

Func TreeView2_13_33()
	Local $TestCaseID = "2.13.33"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime()
	Send("o")
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sFolderPropertiesDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_34()
	Local $TestCaseID = "2.13.34"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlCommand($sFolderPropertiesDialogTitle,"",$sSetInboxCheckBox,"Check", "")
	Common_SleepTime(2) 
	If ControlCommand($sFolderPropertiesDialogTitle,"",$sSettingsButton,"IsEnabled", "") Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_13_35()
	Local $TestCaseID = "2.13.35"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName) 
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlCommand($sFolderPropertiesDialogTitle,"",$sSetInboxCheckBox,"Check", "")
	Common_SleepTime(2) 
	ControlClick($sFolderPropertiesDialogTitle,"",$sSettingsButton)
	Common_SleepTime(7) 
    If WinExists($sInboxSettingsDialogTitle) Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile& $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_13_36()
	Local $TestCaseID = "2.13.36"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlCommand($sFolderPropertiesDialogTitle,"",$sSetInboxCheckBox,"Check", "")
	Common_SleepTime(2) 
	ControlClick($sFolderPropertiesDialogTitle,"",$sSettingsButton)
	Common_SleepTime(4)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sInboxSettingsDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_42()
	Local $TestCaseID = "2.13.42"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime(2)
	Send("!f")
	Common_SleepTime(2)
	Send("o")
	Common_SleepTime(6) 
	ControlCommand($sFolderPropertiesDialogTitle,"",$sSetInboxCheckBox,"Check")
	Common_SleepTime(2)
	ControlClick($sFolderPropertiesDialogTitle,"",$sSettingsButton)
	Common_SleepTime(4)
	ControlCommand($sInboxSettingsDialogTitle,"",$sEmailFolderCheckBox,"Check")
	Common_SleepTime(2)
	ControlClick($sInboxSettingsDialogTitle,"",$sEmailFolderBrowseButton)
	Common_SleepTime(8)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sSelectFolderDialogTitle)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#cs
Func TreeView2_13_43()
	Local $TestCaseID = "2.13.43"
	Local $sCusMsg = ''
	$sFailLogMsg = Common_GetTestStepInSTD($sExcelSheetName,$iCurrentSheetTotalLineNumber,$TestCaseID, $iRescolumn, $sCusMsg)
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $hPMHandle =  Common_Run_PageManager_Ex($TestCaseID, $sTreeViewFunctionName)
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlCommand($sFolderPropertiesDialogTitle,"",$sSetInboxCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sFolderPropertiesDialogTitle,"",$sSettingsButton)
	Common_SleepTime(2)
	ControlCommand($sInboxSettingsDialogTitle,"",$sEmailFolderCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",$sEmailFolderBrowseButton)
	Common_SleepTime(4)
	$h1=ControlGetHandle($sSelectFolderDialogTitle,"",2000)
	Common_SleepTime()
	$hItemFound = _GUICtrlTreeView_FindItem($h1, "Inbox")
	Common_SleepTime()
	_GUICtrlTreeView_ClickItem($h1,$hItemFound)
	Common_SleepTime()
	ControlClick($sSelectFolderDialogTitle,"",1)
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",1)
	Common_SleepTime()
	ControlClick($sFolderPropertiesDialogTitle,"",1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)   
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage & $sFailLogMsg, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_57()
	Local $TestCaseID = "2.13.57"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlCommand($sFolderPropertiesDialogTitle,"",$sSetInboxCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sFolderPropertiesDialogTitle,"",$sSettingsButton)
	Common_SleepTime(2)
	ControlCommand($sInboxSettingsDialogTitle,"",$sFaxFolderCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",$sFaxFolderBrowseButton)
	Common_SleepTime(4)
	$h1=ControlGetHandle($sBrowseForFolderDialogTitle,"",$sBrowseForFolderTreeView)
	ControlTreeView ($sBrowseForFolderDialogTitle, "", $h1, "Expand", "#0|#2")
	ControlTreeView ($sBrowseForFolderDialogTitle, "", $h1, "Expand", "#0|#2|#0")
	Common_SleepTime()
	$hItemFound = _GUICtrlTreeView_FindItem($h1, "TreeView")
	Common_SleepTime()
	 _GUICtrlTreeView_Expand($hTreeView, $hItemFound)
	Common_SleepTime()
	$hItemFound1 = _GUICtrlTreeView_FindItem($hTreeView, "OS sharing")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($hTreeView, $hItemFound1)
	Common_SleepTime()
	ControlClick($sBrowseForFolderDialogTitle,"",1)
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",1)
	Common_SleepTime()
	ControlClick($sFolderPropertiesDialogTitle,"",1)
	Common_SleepTime(2)
	Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $hTreeView)
	Common_SleepTime(2) 
	Send("{esc}")
	$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
	If $CaptureCompareResult Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   	
	Else
		Common_WriteLog($sFaile & ":Please check "&$sCaptureImage, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc

Func TreeView2_13_58()
	Local $TestCaseID = "2.13.58"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	DirCopy ( $SamplePatch&"Fax folder", "C:\"&$sTreeViewFunctionName&"\Fax folder" ,1 )
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlCommand($sFolderPropertiesDialogTitle,"",$sSetInboxCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sFolderPropertiesDialogTitle,"",$sSettingsButton)
	Common_SleepTime(2)
	ControlCommand($sInboxSettingsDialogTitle,"",$sFaxFolderCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",$sFaxFolderBrowseButton)
	Common_SleepTime(4)
	ControlTreeView ($sBrowseForFolderDialogTitle, "",$sBrowseForFolderTreeView, "Expand", "#0|#2")
	Common_SleepTime()
	ControlTreeView ($sBrowseForFolderDialogTitle, "",$sBrowseForFolderTreeView,"Expand", "#0|#2|#0")
	Common_SleepTime()
	$h1=ControlGetHandle($sBrowseForFolderDialogTitle, "",$sBrowseForFolderTreeView)
	$hItemFound = _GUICtrlTreeView_FindItem($h1, "TreeView")
	Common_SleepTime()
	 _GUICtrlTreeView_Expand($h1, $hItemFound)
	Common_SleepTime(2)
	$hItemFound1 = _GUICtrlTreeView_FindItem($h1, "Fax folder")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($h1, $hItemFound1)
	Common_SleepTime()
	ControlClick($sBrowseForFolderDialogTitle,"",1)
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",1)
	Common_SleepTime()
	ControlClick($sFolderPropertiesDialogTitle,"",1)	
	Common_SleepTime(420)
	$n=ControlListView ( $hPMHandle, "", $sThumbnailViewCtrInfo, "GetItemCount")
	Common_SleepTime()
    If $n=25 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1
	ElseIf $n=24 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1   
	ElseIf $n=20 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 		
    Else
	    Common_WriteLog($sFaile & ":After 1M,the files cannot be copied to the objective folder.", $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_13_59()
	Local $TestCaseID = "2.13.59"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	DirCopy ( $SamplePatch&"Fax folder", "C:\"&$sTreeViewFunctionName&"\Fax folder" ,1 )
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime(1)
	Send("o")
	Common_SleepTime(4) 
	ControlCommand($sFolderPropertiesDialogTitle,"",$sSetInboxCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sFolderPropertiesDialogTitle,"",$sSettingsButton)
	Common_SleepTime(2)
	ControlCommand($sInboxSettingsDialogTitle,"",$sFaxFolderCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",$sFaxFolderBrowseButton)
	Common_SleepTime(4)
	ControlTreeView ($sBrowseForFolderDialogTitle, "",$sBrowseForFolderTreeView, "Expand", "#0|#2")
	Common_SleepTime()
	ControlTreeView ($sBrowseForFolderDialogTitle, "",$sBrowseForFolderTreeView,"Expand", "#0|#2|#0")
	Common_SleepTime()
	$h1=ControlGetHandle($sBrowseForFolderDialogTitle, "",$sBrowseForFolderTreeView)
	$hItemFound = _GUICtrlTreeView_FindItem($h1, "TreeView")
	Common_SleepTime()
	 _GUICtrlTreeView_Expand($h1, $hItemFound)
	Common_SleepTime(2)
	$hItemFound1 = _GUICtrlTreeView_FindItem($h1, "Fax folder")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($h1, $hItemFound1)
	Common_SleepTime()
	ControlClick($sBrowseForFolderDialogTitle,"",1)
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",1)
	Common_SleepTime()
	ControlClick($sFolderPropertiesDialogTitle,"",1)	
	FileCopy ($SamplePatch& "files", "C:\"&$sTreeViewFunctionName&"\Fax folder" ,1 )
	Common_SleepTime(420)
	$n=ControlListView ( $hPMHandle, "", $sThumbnailViewCtrInfo, "GetItemCount")
	Common_SleepTime()
    If $n=29 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1  
	ElseIf $n=24 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & ":After 1M,the files cannot be copied to the objective folder.", $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_13_60()
	Local $TestCaseID = "2.13.60"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	DirCopy ( $SamplePatch&"Fax folder", "C:\"&$sTreeViewFunctionName&"\Fax folder" ,1 )
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime()
	Send("o")
	Common_SleepTime(4) 
	ControlCommand($sFolderPropertiesDialogTitle,"",$sSetInboxCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sFolderPropertiesDialogTitle,"",$sSettingsButton)
	Common_SleepTime(2)
	ControlCommand($sInboxSettingsDialogTitle,"",$sFaxFolderCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",$sFaxFolderBrowseButton)
	Common_SleepTime(4)
	ControlTreeView ($sBrowseForFolderDialogTitle, "",$sBrowseForFolderTreeView, "Expand", "#0|#2")
	Common_SleepTime()
	ControlTreeView ($sBrowseForFolderDialogTitle, "",$sBrowseForFolderTreeView,"Expand", "#0|#2|#0")
	Common_SleepTime()
	$h1=ControlGetHandle($sBrowseForFolderDialogTitle, "",$sBrowseForFolderTreeView)
	$hItemFound = _GUICtrlTreeView_FindItem($h1, "TreeView")
	Common_SleepTime()
	 _GUICtrlTreeView_Expand($h1, $hItemFound)
	Common_SleepTime(2)
	$hItemFound1 = _GUICtrlTreeView_FindItem($h1, "Fax folder")
    Common_SleepTime() 
	 _GUICtrlTreeView_ClickItem($h1, $hItemFound1)
	Common_SleepTime()
	ControlClick($sBrowseForFolderDialogTitle,"",1)
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",1)
	Common_SleepTime()
	ControlClick($sFolderPropertiesDialogTitle,"",1)
	Common_Close_PM($hPMHandle)	
	FileCopy ($SamplePatch& "files", "C:\"&$sTreeViewFunctionName&"\Fax folder" ,1 )
	Common_SleepTime(6) 
	Local $hPMHandle1 = Common_Run_PageManager()
	Common_SleepTime(20) 
	$n=ControlListView ( $hPMHandle1, "", $sThumbnailViewCtrInfo, "GetItemCount")
	Common_SleepTime()
    If $n=21 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1  
	ElseIf $n=24 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
	ElseIf $n=16 Then
		Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 1 
    Else
	    Common_WriteLog($sFaile & ":After 1M,the files cannot be copied to the objective folder.", $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
    EndIf
EndFunc

Func TreeView2_13_61()
	Local $TestCaseID = "2.13.61"
	Local $bReproduceTestCase = Common_ReproduceRunWithIni($sTreeViewFunctionName,$TestCaseID)
	If $bReproduceTestCase = False Then
		Return 3   
	EndIf
	Local $sTestCaseLevel = Common_GetTestCaseLevel($oExcel, $TestCaseID,$sTreeViewFunctionName,$iCurrentSheetTotalLineNumber)   
	Local $bExecuteTestCase = Common_IsTestCaseLevelQualified($sTestCaseLevel)
	If $bExecuteTestCase = False Then
		Return 2   
	EndIf 
	Local $sCaptureImage = $TestCaseID & '.jpg'  
	Common_Del_DB() 
	Common_InitializeStatus()   
	InitializeStatusForTreeView()
	Local $sPMTitle = Common_Run_PageManager() 
	Local $hPMHandle =  WinGetHandle($sPMTitle)
	Common_SleepTime(2) 
	local $hTreeView=ControlGetHandle($hPMHandle,"",$sTreeViewCtrInfo)
	$hItem= _GUICtrlTreeView_GetSelection ($hTreeView)
	_GUICtrlTreeView_ClickItem($hTreeView, $hItem)
	_GUICtrlTreeView_SelectItem($hTreeView, $hItem)
	Common_SleepTime()
	Send("!f")
	Common_SleepTime()
	Send("o")
	Common_SleepTime(4) 
	ControlCommand($sFolderPropertiesDialogTitle,"",$sSetInboxCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sFolderPropertiesDialogTitle,"",$sSettingsButton)
	Common_SleepTime(2)
	ControlCommand($sInboxSettingsDialogTitle,"",$sFaxFolderCheckBox,"Check")
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",$sFaxFolderBrowseButton)
	Common_SleepTime(4)
	$h1=ControlGetHandle($sBrowseForFolderDialogTitle,"",100)
	Local $TreeViewHandle = ControlGetHandle($sBrowseForFolderDialogTitle, "","SysTreeView321")
	Local $Item1 = _GUICtrlTreeView_FindItem($TreeViewHandle, "My Documents")
	If $Item1 == 0 Then $Item1 = _GUICtrlTreeView_FindItem($hTreeView, "Documents")
	Sleep(500)
	_GUICtrlTreeView_ClickItem($TreeViewHandle, $Item1)
	_GUICtrlTreeView_SelectItem($TreeViewHandle, $Item1)
	Sleep(300)
	ControlTreeView ($sBrowseForFolderDialogTitle, "", $h1, "Expand", "#0|#1")
	ControlTreeView ($sBrowseForFolderDialogTitle, "", $h1, "Expand", "#0|#1|#2")
	Common_SleepTime()
	$hItemFound = _GUICtrlTreeView_FindItem($h1, "My PageManager")
    Common_SleepTime(2) 
	_GUICtrlTreeView_ClickItem($h1, $hItemFound)
	_GUICtrlTreeView_SelectItem($h1, $hItemFound)
	Common_SleepTime()
	ControlClick($sBrowseForFolderDialogTitle,"",1)
	Common_SleepTime()
	ControlClick($sInboxSettingsDialogTitle,"",1)
	Common_SleepTime(2)
    If WinExists($sAllMessageTitle) Then
		Common_ScreenCaprureWindow($PerformResultPath,$sCaptureImage, $sAllMessageTitle)
		Common_SleepTime(2) 
		Send("{esc}")
		SetShareFolderInPM(False)
		$CaptureCompareResult = Common_CompareFile ($PerformResultPath&$sCaptureImage, $CorrectResutPath&$sCaptureImage)  
		If $CaptureCompareResult Then
			Common_WriteLog($sPass, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 1   	
		Else
			Common_WriteLog($sFaile & ":Please check "&$sCaptureImage, $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
			Common_Close_PM($hPMHandle) 
			Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
			Return 0
		EndIf
	Else
		Common_WriteLog($sFaile& ":Not message to refer user When the Fax folder or special folder is same with inbox folder" , $TestCaseID,$sTreeViewFunctionName,$bReproduceTestCase)  
		Common_Close_PM($hPMHandle) 
		Common_WiteTestCaseExecuteRecode($sTempTXTPath,$TestCaseID)
		Return 0
	EndIf
EndFunc
#ce


